diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 5711042a65f7..c1b987623785 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3025,6 +3025,15 @@ githubId = 16950437; name = "cwyc"; }; + cynerd = { + name = "Karel Kočí"; + email = "cynerd@email.cz"; + github = "Cynerd"; + githubId = 3811900; + keys = [{ + fingerprint = "2B1F 70F9 5F1B 48DA 2265 A7FA A6BC 8B8C EB31 659B"; + }]; + }; cyounkins = { name = "Craig Younkins"; email = "cyounkins@gmail.com"; diff --git a/pkgs/development/python-modules/pytest-tap/default.nix b/pkgs/development/python-modules/pytest-tap/default.nix new file mode 100644 index 000000000000..dd545a5b6dd6 --- /dev/null +++ b/pkgs/development/python-modules/pytest-tap/default.nix @@ -0,0 +1,52 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, pytest +, tappy +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "pytest-tap"; + version = "3.3"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "python-tap"; + repo = "pytest-tap"; + rev = "v${version}"; + sha256 = "R0RSdKTyJYGq+x0+ut4pJEywTGNgGp/ps36ZaH5dyY4="; + }; + + buildInputs = [ + pytest + ]; + + propagatedBuildInputs = [ + tappy + ]; + + checkInputs = [ + pytestCheckHook + ]; + + disabledTests = [ + # Fixed in 4ed0138bf659c348b6dfb8bb701ae1989625d3d8 and hopefully in next release + "test_unittest_expected_failure" + ]; + + pythonImportsCheck = [ + "pytest_tap" + ]; + + meta = with lib; { + description = "Test Anything Protocol (TAP) reporting plugin for pytest"; + homepage = "https://github.com/python-tap/pytest-tap"; + changelog = "https://github.com/python-tap/pytest-tap/blob/v${version}/docs/releases.rst"; + license = licenses.bsd2; + maintainers = with maintainers; [ cynerd ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ffe12a5c982e..9cf195fda325 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8990,6 +8990,8 @@ self: super: with self; { pytest-sugar = callPackage ../development/python-modules/pytest-sugar { }; + pytest-tap = callPackage ../development/python-modules/pytest-tap { }; + pytest-test-utils = callPackage ../development/python-modules/pytest-test-utils { }; pytest-testmon = callPackage ../development/python-modules/pytest-testmon { };