summary refs log tree commit diff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-12-27 15:49:22 +0100
committerKarel Kočí <cynerd@email.cz>2022-12-30 18:39:34 +0100
commit9295cc28c9c38430b14894f3912d70d3aecdf84a (patch)
tree81b2911e716d0978c8f8167ecbbeb74be4e0be75
parent52bf0b7dc0efba19c585cad40020f69a82aba616 (diff)
downloadnixpkgs-9295cc28c9c38430b14894f3912d70d3aecdf84a.tar
nixpkgs-9295cc28c9c38430b14894f3912d70d3aecdf84a.tar.gz
nixpkgs-9295cc28c9c38430b14894f3912d70d3aecdf84a.tar.bz2
nixpkgs-9295cc28c9c38430b14894f3912d70d3aecdf84a.tar.lz
nixpkgs-9295cc28c9c38430b14894f3912d70d3aecdf84a.tar.xz
nixpkgs-9295cc28c9c38430b14894f3912d70d3aecdf84a.tar.zst
nixpkgs-9295cc28c9c38430b14894f3912d70d3aecdf84a.zip
python3Packages.pytest-tap: init at 3.3
-rw-r--r--maintainers/maintainer-list.nix9
-rw-r--r--pkgs/development/python-modules/pytest-tap/default.nix38
-rw-r--r--pkgs/top-level/python-packages.nix2
3 files changed, 49 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index 9fb4956ac2d..e27ed8356a5 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -3019,6 +3019,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 00000000000..10830fdec69
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-tap/default.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, pythonOlder
+, pytest
+, tappy
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "pytest-tap";
+  version = "3.3";
+  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"
+  ];
+
+  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 4ca17accf53..cc3a5f96ea1 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -8982,6 +8982,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 { };