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";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.4.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;
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "89b330316f7fc475f999c81b577c2b926c9569f3d397ae432c0c2e2496d61ff9";
|
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"
|
|
|
|
];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|