2021-02-19 19:06:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-28 23:13:55 +00:00
|
|
|
, pythonOlder
|
2021-06-04 09:07:49 +00:00
|
|
|
, setuptools-scm
|
2021-02-19 19:06:45 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, filelock
|
|
|
|
, execnet
|
|
|
|
, pytest
|
|
|
|
, pytest-forked
|
|
|
|
, psutil
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-xdist";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "2.5.0";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "sha256-RYDeyj/wTdsqxT66Oddstd1e3qwFDLb7x2iw3XErTt8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-04 09:07:49 +00:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2021-03-19 17:17:44 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-02-19 19:06:45 +00:00
|
|
|
checkInputs = [ pytestCheckHook filelock ];
|
2021-03-19 17:17:44 +00:00
|
|
|
propagatedBuildInputs = [ execnet pytest-forked psutil ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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"
|
2021-02-19 19:06:45 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
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 ];
|
|
|
|
};
|
|
|
|
}
|