Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, fetchPypi, buildPythonPackage, execnet, pytest, setuptools_scm, pytest-forked, filelock, six }: 2 3buildPythonPackage rec { 4 pname = "pytest-xdist"; 5 version = "1.26.1"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "d03d1ff1b008458ed04fa73e642d840ac69b4107c168e06b71037c62d7813dd4"; 10 }; 11 12 nativeBuildInputs = [ setuptools_scm pytest ]; 13 checkInputs = [ pytest filelock ]; 14 propagatedBuildInputs = [ execnet pytest-forked six ]; 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 maintainers = with maintainers; [ dotlambda ]; 30 }; 31}