about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/junit-xml
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-01-14 23:59:31 +0000
committerAlyssa Ross <hi@alyssa.is>2020-01-14 23:59:31 +0000
commit388bd5ecef704d7aa423878e28cf46820ba42aaa (patch)
treef56964e1b059a3400259b2a6c9274f0bd58e5648 /nixpkgs/pkgs/development/python-modules/junit-xml
parenta5e4eba0a2066e541c1e81938655cbf62067804e (diff)
parent100012e55bc2a82fc680cba31a426ad38ead6fab (diff)
downloadnixlib-388bd5ecef704d7aa423878e28cf46820ba42aaa.tar
nixlib-388bd5ecef704d7aa423878e28cf46820ba42aaa.tar.gz
nixlib-388bd5ecef704d7aa423878e28cf46820ba42aaa.tar.bz2
nixlib-388bd5ecef704d7aa423878e28cf46820ba42aaa.tar.lz
nixlib-388bd5ecef704d7aa423878e28cf46820ba42aaa.tar.xz
nixlib-388bd5ecef704d7aa423878e28cf46820ba42aaa.tar.zst
nixlib-388bd5ecef704d7aa423878e28cf46820ba42aaa.zip
Merge commit '100012e55bc2a82fc680cba31a426ad38ead6fab'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/junit-xml')
-rw-r--r--nixpkgs/pkgs/development/python-modules/junit-xml/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/junit-xml/default.nix b/nixpkgs/pkgs/development/python-modules/junit-xml/default.nix
new file mode 100644
index 000000000000..dcd26fabee7b
--- /dev/null
+++ b/nixpkgs/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;
+  };
+}