Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 36 lines 1.2 kB view raw
1{ stdenv, fetchPypi, buildPythonPackage, execnet, pytest 2, setuptools_scm, pytest-forked, filelock, six, isPy3k }: 3 4buildPythonPackage rec { 5 pname = "pytest-xdist"; 6 version = "1.28.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "f83a485293e81fd57c8a5a85a3f12473a532c5ca7dec518857cbb72766bb526c"; 11 }; 12 13 nativeBuildInputs = [ setuptools_scm pytest ]; 14 checkInputs = [ pytest filelock ]; 15 propagatedBuildInputs = [ execnet pytest-forked 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 stdenv.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}