1{ lib, fetchPypi, buildPythonPackage, execnet, pytest 2, setuptools-scm, pytest-forked, filelock, psutil, six, isPy3k }: 3 4buildPythonPackage rec { 5 pname = "pytest-xdist"; 6 version = "1.34.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "1vh4ps32lp5ignch5adbl3pgchvigdfmrl6qpmhxih54wa1qw3il"; 11 }; 12 13 nativeBuildInputs = [ setuptools-scm pytest ]; 14 checkInputs = [ pytest filelock ]; 15 propagatedBuildInputs = [ execnet pytest-forked psutil six ]; 16 17 # Encountered a memory leak 18 # https://github.com/pytest-dev/pytest-xdist/issues/462 19 doCheck = !isPy3k; 20 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 ''; 29 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 }; 36}