Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / pytest-xdist / 1.nix
blobfa794f94141a986fe1539482501b7583ea7a75eb
1 { lib, fetchPypi, buildPythonPackage, execnet, pytest
2 , setuptools_scm, pytest-forked, filelock, psutil, six, isPy3k }:
4 buildPythonPackage rec {
5   pname = "pytest-xdist";
6   version = "1.34.0";
8   src = fetchPypi {
9     inherit pname version;
10     sha256 = "1vh4ps32lp5ignch5adbl3pgchvigdfmrl6qpmhxih54wa1qw3il";
11   };
13   nativeBuildInputs = [ setuptools_scm pytest ];
14   checkInputs = [ pytest filelock ];
15   propagatedBuildInputs = [ execnet pytest-forked psutil six ];
17   # Encountered a memory leak
18   # https://github.com/pytest-dev/pytest-xdist/issues/462
19   doCheck = !isPy3k;
21   checkPhase = ''
22     # Excluded tests access file system
23     py.test testing -k "not test_distribution_rsyncdirs_example \
24                     and not test_rsync_popen_with_path \
25                     and not test_popen_rsync_subdir \
26                     and not test_init_rsync_roots \
27                     and not test_rsyncignore"
28   '';
30   meta = with lib; {
31     description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
32     homepage = "https://github.com/pytest-dev/pytest-xdist";
33     license = licenses.mit;
34     maintainers = with maintainers; [ dotlambda ];
35   };