1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 setuptools, 8 9 # dependencies 10 pytest, 11 12 # optional-dependencies 13 psutil, 14 15 # tests 16 pytest-cov-stub, 17 pytest-order, 18 pytestCheckHook, 19}: 20 21buildPythonPackage rec { 22 pname = "pytest-run-parallel"; 23 version = "0.6.0"; 24 pyproject = true; 25 26 src = fetchFromGitHub { 27 owner = "Quansight-Labs"; 28 repo = "pytest-run-parallel"; 29 tag = "v${version}"; 30 hash = "sha256-6cfpPJItOmb79KERqpKz/nQlyTrAj4yv+bGM8SXrsXg="; 31 }; 32 33 build-system = [ setuptools ]; 34 35 dependencies = [ pytest ]; 36 37 optional-dependencies = { 38 psutil = [ 39 psutil 40 ]; 41 }; 42 43 nativeCheckInputs = [ 44 pytest-cov-stub 45 pytest-order 46 pytestCheckHook 47 ]; 48 49 pythonImportsCheck = [ 50 "pytest_run_parallel" 51 ]; 52 53 meta = { 54 description = "Simple pytest plugin to run tests concurrently"; 55 homepage = "https://github.com/Quansight-Labs/pytest-run-parallel"; 56 changelog = "https://github.com/Quansight-Labs/pytest-run-parallel/blob/${src.tag}/CHANGELOG.md"; 57 license = lib.licenses.mit; 58 maintainers = with lib.maintainers; [ hexa ]; 59 }; 60}