2021-01-23 15:00:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
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-02-20 09:09:15 +00:00
|
|
|
version = "2.2.1";
|
2021-01-23 15:00:51 +00:00
|
|
|
disabled = isPy27;
|
2017-05-12 07:36:25 +01:00
|
|
|
|
2017-05-15 13:36:30 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:15 +00:00
|
|
|
sha256 = "718887296892f92683f6a51f25a3ae584993b06f7076ce1e1fd482e59a8220a2";
|
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; {
|
2017-05-12 07:36:25 +01:00
|
|
|
description = "py.test 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
|
|
|
};
|
|
|
|
}
|