Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pytest-tap / default.nix
blob32b12ddcc236baa68c7792bd321cdfe3754c570e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pytest
6 , tappy
7 , pytestCheckHook
8 }:
10 buildPythonPackage rec {
11   pname = "pytest-tap";
12   version = "3.3";
13   format = "setuptools";
15   disabled = pythonOlder "3.6";
17   src = fetchFromGitHub {
18     owner = "python-tap";
19     repo = "pytest-tap";
20     rev = "v${version}";
21     sha256 = "R0RSdKTyJYGq+x0+ut4pJEywTGNgGp/ps36ZaH5dyY4=";
22   };
24   buildInputs = [
25     pytest
26   ];
28   propagatedBuildInputs = [
29     tappy
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
36   disabledTests = [
37     # Fixed in 4ed0138bf659c348b6dfb8bb701ae1989625d3d8 and hopefully in next release
38     "test_unittest_expected_failure"
39   ];
41   pythonImportsCheck = [
42     "pytest_tap"
43   ];
45   meta = with lib; {
46     description = "Test Anything Protocol (TAP) reporting plugin for pytest";
47     homepage = "https://github.com/python-tap/pytest-tap";
48     changelog = "https://github.com/python-tap/pytest-tap/blob/v${version}/docs/releases.rst";
49     license = licenses.bsd2;
50     maintainers = with maintainers; [ cynerd ];
51   };