about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVictor multun Collod <victor.collod@epita.fr>2019-08-30 15:25:43 +0200
committerJon <jonringer@users.noreply.github.com>2020-01-10 10:11:30 -0800
commit4a739220a298e242270edb7ef3f2999db71226dc (patch)
treeef40deaf10f382b8930055636c22aca7881b98e4 /pkgs
parent177894ce59f668104308a866a7ce494125c694c2 (diff)
downloadnixlib-4a739220a298e242270edb7ef3f2999db71226dc.tar
nixlib-4a739220a298e242270edb7ef3f2999db71226dc.tar.gz
nixlib-4a739220a298e242270edb7ef3f2999db71226dc.tar.bz2
nixlib-4a739220a298e242270edb7ef3f2999db71226dc.tar.lz
nixlib-4a739220a298e242270edb7ef3f2999db71226dc.tar.xz
nixlib-4a739220a298e242270edb7ef3f2999db71226dc.tar.zst
nixlib-4a739220a298e242270edb7ef3f2999db71226dc.zip
pythonPackages.junit-xml: init at 1.8
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/python-modules/junit-xml/default.nix32
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/junit-xml/default.nix b/pkgs/development/python-modules/junit-xml/default.nix
new file mode 100644
index 000000000000..dcd26fabee7b
--- /dev/null
+++ b/pkgs/development/python-modules/junit-xml/default.nix
@@ -0,0 +1,32 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, six
+, pytest
+, pytest-sugar
+}:
+
+buildPythonPackage rec {
+  pname = "junit-xml";
+  version = "1.8";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "08fw86azza6d3l3nx34kq69cpwmmfqpn7xrb8pdlxmhr1941qbv0";
+  };
+
+  propagatedBuildInputs = [ six ];
+
+  checkInputs = [ pytest pytest-sugar ];
+
+  checkPhase = ''
+    pytest
+  '';
+
+  meta = with lib; {
+    description = "Creates JUnit XML test result documents that can be read by tools such as Jenkins";
+    homepage = https://github.com/kyrus/python-junit-xml;
+    maintainers = with maintainers; [ multun ];
+    license = licenses.mit;
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 2380f2b12e80..f8942bd7a86f 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -779,6 +779,8 @@ in {
 
   jira = callPackage ../development/python-modules/jira { };
 
+  junit-xml = callPackage ../development/python-modules/junit-xml { };
+
   junitparser = callPackage ../development/python-modules/junitparser { };
 
   jwcrypto = callPackage ../development/python-modules/jwcrypto { };