1{ stdenv, fetchPypi, buildPythonPackage, execnet, pytest, setuptools_scm, pytest-forked }: 2 3buildPythonPackage rec { 4 pname = "pytest-xdist"; 5 version = "1.23.0"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "28e25e79698b2662b648319d3971c0f9ae0e6500f88258ccb9b153c31110ba9b"; 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}