1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, setuptools-scm 6, pytestCheckHook 7, filelock 8, execnet 9, pytest 10, pytest-forked 11, psutil 12}: 13 14buildPythonPackage rec { 15 pname = "pytest-xdist"; 16 version = "2.4.0"; 17 disabled = pythonOlder "3.6"; 18 19 src = fetchPypi { 20 inherit pname version; 21 sha256 = "89b330316f7fc475f999c81b577c2b926c9569f3d397ae432c0c2e2496d61ff9"; 22 }; 23 24 nativeBuildInputs = [ setuptools-scm ]; 25 buildInputs = [ 26 pytest 27 ]; 28 checkInputs = [ pytestCheckHook filelock ]; 29 propagatedBuildInputs = [ execnet pytest-forked psutil ]; 30 31 # access file system 32 disabledTests = [ 33 "test_distribution_rsyncdirs_example" 34 "test_rsync_popen_with_path" 35 "test_popen_rsync_subdir" 36 "test_rsync_report" 37 "test_init_rsync_roots" 38 "test_rsyncignore" 39 ]; 40 41 meta = with lib; { 42 description = "Pytest xdist plugin for distributed testing and loop-on-failing modes"; 43 homepage = "https://github.com/pytest-dev/pytest-xdist"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ dotlambda ]; 46 }; 47}