about summary refs log tree commit diff
diff options
context:
space:
mode:
authoradisbladis <adisbladis@gmail.com>2018-01-11 00:40:41 +0800
committerGitHub <noreply@github.com>2018-01-11 00:40:41 +0800
commitf9e47ab57a6ee25858523db10a3657bfd875f047 (patch)
tree0505225057249b5ddd13d9acee9577634fabbb1e
parent0dec14ba8ceedc6f620bce9e6c4ac6985ad82977 (diff)
parentc7eadc3ce9f4c6251c6bb6af9a162cf2fbba3206 (diff)
downloadnixlib-f9e47ab57a6ee25858523db10a3657bfd875f047.tar
nixlib-f9e47ab57a6ee25858523db10a3657bfd875f047.tar.gz
nixlib-f9e47ab57a6ee25858523db10a3657bfd875f047.tar.bz2
nixlib-f9e47ab57a6ee25858523db10a3657bfd875f047.tar.lz
nixlib-f9e47ab57a6ee25858523db10a3657bfd875f047.tar.xz
nixlib-f9e47ab57a6ee25858523db10a3657bfd875f047.tar.zst
nixlib-f9e47ab57a6ee25858523db10a3657bfd875f047.zip
Merge pull request #33659 from etu/update-pytest-rerunfailures
pytest-rerunfailures: 2.0.1 -> 4.0
-rw-r--r--pkgs/development/python-modules/pytest-rerunfailures/default.nix26
-rw-r--r--pkgs/top-level/python-packages.nix25
2 files changed, 27 insertions, 24 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;
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index d301c767b307..21345dc51940 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -3395,30 +3395,7 @@ in {
 
   pytest-forked = callPackage ../development/python-modules/pytest-forked { };
 
-  pytest-rerunfailures = buildPythonPackage rec {
-    name = "${pname}-${version}";
-    pname = "pytest-rerunfailures";
-    version = "2.0.1";
-
-    src = pkgs.fetchurl {
-      url = "mirror://pypi/p/${pname}/${name}.tar.gz";
-      sha256 = "1zzxlswbny8dp3c1sbhpyms1xkknxb6qfji3y3azc7gc95324xsv";
-    };
-
-    buildInputs = with self; [ pytest ];
-
-    checkPhase = ''
-      py.test
-    '';
-
-    meta = {
-      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;
-    };
-  };
+  pytest-rerunfailures = callPackage ../development/python-modules/pytest-rerunfailures { };
 
   pytest-flake8 = callPackage ../development/python-modules/pytest-flake8 { };