about summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorElis Hirwing <elis@hirwing.se>2018-01-09 18:08:02 +0100
committerElis Hirwing <elis@hirwing.se>2018-01-09 19:26:29 +0100
commitc7eadc3ce9f4c6251c6bb6af9a162cf2fbba3206 (patch)
tree2c86b59ea806c096bf4141679d3491097b86fa1a /pkgs/development/python-modules
parentd6bf8eb71b4e9cbf0aa995449ceb55396e1f6d38 (diff)
downloadnixlib-c7eadc3ce9f4c6251c6bb6af9a162cf2fbba3206.tar
nixlib-c7eadc3ce9f4c6251c6bb6af9a162cf2fbba3206.tar.gz
nixlib-c7eadc3ce9f4c6251c6bb6af9a162cf2fbba3206.tar.bz2
nixlib-c7eadc3ce9f4c6251c6bb6af9a162cf2fbba3206.tar.lz
nixlib-c7eadc3ce9f4c6251c6bb6af9a162cf2fbba3206.tar.xz
nixlib-c7eadc3ce9f4c6251c6bb6af9a162cf2fbba3206.tar.zst
nixlib-c7eadc3ce9f4c6251c6bb6af9a162cf2fbba3206.zip
pytest-rerunfailures: 2.0.1 -> 4.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/pytest-rerunfailures/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-rerunfailures/default.nix b/pkgs/development/python-modules/pytest-rerunfailures/default.nix
new file mode 100644
index 000000000000..f07b0c5fc560
--- /dev/null
+++ b/pkgs/development/python-modules/pytest-rerunfailures/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, buildPythonPackage, fetchPypi, pytest, mock }:
+
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  pname = "pytest-rerunfailures";
+  version = "4.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "18lpy6d9b4ck8j3jwh4vmxj54is0fwanpmpg70qg4y0fycdqzwks";
+  };
+
+  buildInputs = [ pytest mock ];
+
+  checkPhase = ''
+    py.test
+  '';
+
+  meta = with stdenv.lib; {
+    description = "pytest plugin to re-run tests to eliminate flaky failures.";
+    homepage = https://github.com/pytest-dev/pytest-rerunfailures;
+    license = licenses.mpl20;
+    maintainers = with maintainers; [ jgeerds ];
+    platforms = platforms.all;
+  };
+}