2021-01-23 15:00:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-17 18:48:09 +01:00
|
|
|
, pythonOlder
|
2021-06-03 11:09:11 +01:00
|
|
|
, setuptools-scm
|
2021-01-23 15:00:51 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, filelock
|
|
|
|
, execnet
|
|
|
|
, pytest
|
|
|
|
, pytest-forked
|
|
|
|
, psutil
|
|
|
|
}:
|
2017-05-12 07:36:25 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-xdist";
|
2021-06-17 18:48:09 +01:00
|
|
|
version = "2.3.0";
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-05-12 07:36:25 +01:00
|
|
|
|
2017-05-15 13:36:30 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-17 18:48:09 +01:00
|
|
|
sha256 = "e8ecde2f85d88fbcadb7d28cb33da0fa29bca5cf7d5967fa89fc0e97e5299ea5";
|
2017-05-12 07:36:25 +01:00
|
|
|
};
|
|
|
|
|
2021-06-03 11:09:11 +01:00
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
2021-03-08 16:57:14 +00:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-01-23 15:00:51 +00:00
|
|
|
checkInputs = [ pytestCheckHook filelock ];
|
2021-03-08 16:57:14 +00:00
|
|
|
propagatedBuildInputs = [ execnet pytest-forked psutil ];
|
2017-05-12 07:36:25 +01:00
|
|
|
|
2021-01-23 15:00:51 +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"
|
|
|
|
];
|
2017-05-12 07:36:25 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-06-17 18:48:09 +01:00
|
|
|
description = "Pytest xdist plugin for distributed testing and loop-on-failing modes";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-xdist";
|
2017-05-12 07:36:25 +01:00
|
|
|
license = licenses.mit;
|
2018-11-04 15:48:43 +00:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2017-05-12 07:36:25 +01:00
|
|
|
};
|
|
|
|
}
|