summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-01-23 16:00:51 +0100
committerRobert Schütz <dev@schuetz-co.de>2021-01-29 18:28:39 +0100
commit3d19493fa572ce2c140f6bc27e6e4734b4525ea4 (patch)
treef78bfb2908327313e36bb886656568a31053e8b9
parent7267c7bade711df09556a000dee06c69db1ee953 (diff)
downloadnixpkgs-3d19493fa572ce2c140f6bc27e6e4734b4525ea4.tar
nixpkgs-3d19493fa572ce2c140f6bc27e6e4734b4525ea4.tar.gz
nixpkgs-3d19493fa572ce2c140f6bc27e6e4734b4525ea4.tar.bz2
nixpkgs-3d19493fa572ce2c140f6bc27e6e4734b4525ea4.tar.lz
nixpkgs-3d19493fa572ce2c140f6bc27e6e4734b4525ea4.tar.xz
nixpkgs-3d19493fa572ce2c140f6bc27e6e4734b4525ea4.tar.zst
nixpkgs-3d19493fa572ce2c140f6bc27e6e4734b4525ea4.zip
python3Packages.pytest_xdist: 2.1.0 -> 2.2.0
Also update inputs to match setup.py.
-rw-r--r--pkgs/development/python-modules/pytest-xdist/default.nix43
1 files changed, 27 insertions, 16 deletions
diff --git a/pkgs/development/python-modules/pytest-xdist/default.nix b/pkgs/development/python-modules/pytest-xdist/default.nix
index 30e43c17c91..94feb102994 100644
--- a/pkgs/development/python-modules/pytest-xdist/default.nix
+++ b/pkgs/development/python-modules/pytest-xdist/default.nix
@@ -1,28 +1,39 @@
-{ lib, fetchPypi, buildPythonPackage, execnet, pytest_6
-, setuptools_scm, pytest-forked, filelock, psutil, six, isPy3k }:
+{ lib
+, buildPythonPackage
+, fetchPypi
+, isPy27
+, setuptools_scm
+, pytestCheckHook
+, filelock
+, execnet
+, pytest
+, pytest-forked
+, psutil
+}:
 
 buildPythonPackage rec {
   pname = "pytest-xdist";
-  version = "2.1.0";
-  disabled = !isPy3k;
+  version = "2.2.0";
+  disabled = isPy27;
 
   src = fetchPypi {
     inherit pname version;
-    sha256 = "0wh6pn66nncfs6ay0n863bgyriwsgppn8flx5l7551j1lbqkinc2";
+    sha256 = "1d8edbb1a45e8e1f8e44b1260583107fc23f8bc8da6d18cb331ff61d41258ecf";
   };
 
-  nativeBuildInputs = [ setuptools_scm pytest_6 ];
-  checkInputs = [ pytest_6 filelock ];
-  propagatedBuildInputs = [ execnet pytest-forked psutil six ];
+  nativeBuildInputs = [ setuptools_scm ];
+  checkInputs = [ pytestCheckHook filelock ];
+  propagatedBuildInputs = [ execnet pytest pytest-forked psutil ];
 
-  # pytest6 doesn't allow for new lines
-  # capture_deprecated not compatible with latest pytest6
-  checkPhase = ''
-    # Excluded tests access file system
-    export HOME=$TMPDIR
-    pytest -n $NIX_BUILD_CORES \
-      -k "not (distribution_rsyncdirs_example or rsync or warning_captured_deprecated_in_pytest_6)"
-  '';
+  # access file system
+  disabledTests = [
+    "test_distribution_rsyncdirs_example"
+    "test_rsync_popen_with_path"
+    "test_popen_rsync_subdir"
+    "test_rsync_report"
+    "test_init_rsync_roots"
+    "test_rsyncignore"
+  ];
 
   meta = with lib; {
     description = "py.test xdist plugin for distributed testing and loop-on-failing modes";