2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
setuptools-scm,
|
|
|
|
pytestCheckHook,
|
|
|
|
filelock,
|
|
|
|
execnet,
|
|
|
|
pytest,
|
|
|
|
psutil,
|
|
|
|
setproctitle,
|
2021-02-19 19:06:45 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-xdist";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "3.6.1";
|
2023-03-15 16:39:30 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
pyproject = true;
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
2024-07-27 06:49:29 +00:00
|
|
|
pname = "pytest_xdist";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-6tFWpNsjHux2lzf1dmjvWKIISjSy5VxKj6INhhEHMA0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ pytest ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
dependencies = [ execnet ];
|
2023-01-20 10:41:00 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2023-01-20 10:41:00 +00:00
|
|
|
filelock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
optional-dependencies = {
|
2023-01-20 10:41:00 +00:00
|
|
|
psutil = [ psutil ];
|
|
|
|
setproctitle = [ setproctitle ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
# pytest can already use xdist at this point
|
|
|
|
"--numprocesses=$NIX_BUILD_CORES"
|
|
|
|
];
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
# access file system
|
|
|
|
disabledTests = [
|
|
|
|
"test_distribution_rsyncdirs_example"
|
|
|
|
"test_rsync_popen_with_path"
|
|
|
|
"test_popen_rsync_subdir"
|
|
|
|
"test_rsync_report"
|
|
|
|
"test_init_rsync_roots"
|
|
|
|
"test_rsyncignore"
|
2021-12-26 17:43:05 +00:00
|
|
|
# flakey
|
|
|
|
"test_internal_errors_propagate_to_controller"
|
2024-01-13 08:15:51 +00:00
|
|
|
# https://github.com/pytest-dev/pytest-xdist/issues/985
|
|
|
|
"test_workqueue_ordered_by_size"
|
2021-02-19 19:06:45 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/pytest-dev/pytest-xdist/blob/v${version}/CHANGELOG.rst";
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Pytest xdist plugin for distributed testing and loop-on-failing modes";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-xdist";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|