summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-xdist
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-02-10 11:37:12 +0100
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-02-10 11:37:12 +0100
commit520eaac3c310fff3cf5d0762761d3d68e596de00 (patch)
treec804df8f00a93a476b696ac5d9aaa61e8ba63422 /pkgs/development/python-modules/pytest-xdist
parent5ca63e04624bd6afd54c1a3d5315550c9ad2c606 (diff)
downloadnixlib-520eaac3c310fff3cf5d0762761d3d68e596de00.tar
nixlib-520eaac3c310fff3cf5d0762761d3d68e596de00.tar.gz
nixlib-520eaac3c310fff3cf5d0762761d3d68e596de00.tar.bz2
nixlib-520eaac3c310fff3cf5d0762761d3d68e596de00.tar.lz
nixlib-520eaac3c310fff3cf5d0762761d3d68e596de00.tar.xz
nixlib-520eaac3c310fff3cf5d0762761d3d68e596de00.tar.zst
nixlib-520eaac3c310fff3cf5d0762761d3d68e596de00.zip
pythonPackages.pytest_xdist: enable tests for python2
Diffstat (limited to 'pkgs/development/python-modules/pytest-xdist')
-rw-r--r--pkgs/development/python-modules/pytest-xdist/default.nix19
1 files changed, 8 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/pytest-xdist/default.nix b/pkgs/development/python-modules/pytest-xdist/default.nix
index d671fd9654a4..596ce38ed0ab 100644
--- a/pkgs/development/python-modules/pytest-xdist/default.nix
+++ b/pkgs/development/python-modules/pytest-xdist/default.nix
@@ -1,7 +1,6 @@
 { stdenv, fetchPypi, buildPythonPackage, isPy3k, execnet, pytest, setuptools_scm, pytest-forked }:
 
 buildPythonPackage rec {
-  name = "${pname}-${version}";
   pname = "pytest-xdist";
   version = "1.22.0";
 
@@ -10,21 +9,19 @@ buildPythonPackage rec {
     sha256 = "65228a859191f2c74ee68c127317eefe35eedd3d43fc1431f19240663b0cafcd";
   };
 
-  buildInputs = [ pytest setuptools_scm pytest-forked];
+  nativeBuildInputs = [ setuptools_scm ];
+  buildInputs = [ pytest pytest-forked ];
   propagatedBuildInputs = [ execnet ];
 
-  postPatch = ''
-    rm testing/acceptance_test.py testing/test_remote.py testing/test_slavemanage.py
-  '';
-
   checkPhase = ''
-    py.test testing
+    # Excluded tests access file system
+    py.test testing -k "not test_distribution_rsyncdirs_example \
+                    and not test_rsync_popen_with_path \
+                    and not test_popen_rsync_subdir \
+                    and not test_init_rsync_roots \
+                    and not test_rsyncignore"
   '';
 
-  # Only test on 3.x
-  # INTERNALERROR> AttributeError: 'NoneType' object has no attribute 'getconsumer'
-  doCheck = isPy3k;
-
   meta = with stdenv.lib; {
     description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
     homepage = https://github.com/pytest-dev/pytest-xdist;