biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pytest-xdist / default.nix
blob555c84031144209c5cb19abadc90057e471e4848
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   pythonOlder,
6   setuptools,
7   setuptools-scm,
8   pytestCheckHook,
9   filelock,
10   execnet,
11   pytest,
12   psutil,
13   setproctitle,
16 buildPythonPackage rec {
17   pname = "pytest-xdist";
18   version = "3.6.1";
19   disabled = pythonOlder "3.7";
21   pyproject = true;
23   src = fetchPypi {
24     pname = "pytest_xdist";
25     inherit version;
26     hash = "sha256-6tFWpNsjHux2lzf1dmjvWKIISjSy5VxKj6INhhEHMA0=";
27   };
29   build-system = [
30     setuptools
31     setuptools-scm
32   ];
34   buildInputs = [ pytest ];
36   dependencies = [ execnet ];
38   nativeCheckInputs = [
39     filelock
40     pytestCheckHook
41   ];
43   optional-dependencies = {
44     psutil = [ psutil ];
45     setproctitle = [ setproctitle ];
46   };
48   pytestFlagsArray = [
49     # pytest can already use xdist at this point
50     "--numprocesses=$NIX_BUILD_CORES"
51   ];
53   # access file system
54   disabledTests = [
55     "test_distribution_rsyncdirs_example"
56     "test_rsync_popen_with_path"
57     "test_popen_rsync_subdir"
58     "test_rsync_report"
59     "test_init_rsync_roots"
60     "test_rsyncignore"
61     # flakey
62     "test_internal_errors_propagate_to_controller"
63     # https://github.com/pytest-dev/pytest-xdist/issues/985
64     "test_workqueue_ordered_by_size"
65   ];
67   setupHook = ./setup-hook.sh;
69   meta = with lib; {
70     changelog = "https://github.com/pytest-dev/pytest-xdist/blob/v${version}/CHANGELOG.rst";
71     description = "Pytest xdist plugin for distributed testing and loop-on-failing modes";
72     homepage = "https://github.com/pytest-dev/pytest-xdist";
73     license = licenses.mit;
74     maintainers = with maintainers; [ dotlambda ];
75   };