nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 62 lines 1.2 kB view raw
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 pytest-xdist, 19 pytestCheckHook, 20}: 21 22buildPythonPackage rec { 23 pname = "pytest-run-parallel"; 24 version = "0.8.2"; 25 pyproject = true; 26 27 src = fetchFromGitHub { 28 owner = "Quansight-Labs"; 29 repo = "pytest-run-parallel"; 30 tag = "v${version}"; 31 hash = "sha256-/EoIemQvQFgo9Ic+ZcQJk7fC8S+OHOHaHODrsivarhY="; 32 }; 33 34 build-system = [ setuptools ]; 35 36 dependencies = [ pytest ]; 37 38 optional-dependencies = { 39 psutil = [ 40 psutil 41 ]; 42 }; 43 44 nativeCheckInputs = [ 45 pytest-cov-stub 46 pytest-order 47 pytest-xdist 48 pytestCheckHook 49 ]; 50 51 pythonImportsCheck = [ 52 "pytest_run_parallel" 53 ]; 54 55 meta = { 56 description = "Simple pytest plugin to run tests concurrently"; 57 homepage = "https://github.com/Quansight-Labs/pytest-run-parallel"; 58 changelog = "https://github.com/Quansight-Labs/pytest-run-parallel/blob/${src.tag}/CHANGELOG.md"; 59 license = lib.licenses.mit; 60 maintainers = with lib.maintainers; [ hexa ]; 61 }; 62}