1{ stdenv, fetchPypi, buildPythonPackage, isPy3k, execnet, pytest, setuptools_scm, pytest-forked }:
2
3buildPythonPackage rec {
4 pname = "pytest-xdist";
5 version = "1.22.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "65228a859191f2c74ee68c127317eefe35eedd3d43fc1431f19240663b0cafcd";
10 };
11
12 nativeBuildInputs = [ setuptools_scm ];
13 buildInputs = [ pytest pytest-forked ];
14 propagatedBuildInputs = [ execnet ];
15
16 checkPhase = ''
17 # Excluded tests access file system
18 py.test testing -k "not test_distribution_rsyncdirs_example \
19 and not test_rsync_popen_with_path \
20 and not test_popen_rsync_subdir \
21 and not test_init_rsync_roots \
22 and not test_rsyncignore"
23 '';
24
25 meta = with stdenv.lib; {
26 description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
27 homepage = https://github.com/pytest-dev/pytest-xdist;
28 license = licenses.mit;
29 };
30}