2021-01-23 07:00:51 -08:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, setuptools_scm
|
|
|
|
, pytestCheckHook
|
|
|
|
, filelock
|
|
|
|
, execnet
|
|
|
|
, pytest
|
|
|
|
, pytest-forked
|
|
|
|
, psutil
|
|
|
|
}:
|
2017-05-11 23:36:25 -07:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-xdist";
|
2021-02-20 01:09:15 -08:00
|
|
|
version = "2.2.1";
|
2021-01-23 07:00:51 -08:00
|
|
|
disabled = isPy27;
|
2017-05-11 23:36:25 -07:00
|
|
|
|
2017-05-15 05:36:30 -07:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 01:09:15 -08:00
|
|
|
sha256 = "718887296892f92683f6a51f25a3ae584993b06f7076ce1e1fd482e59a8220a2";
|
2017-05-11 23:36:25 -07:00
|
|
|
};
|
|
|
|
|
2021-01-23 07:00:51 -08:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
2021-03-08 08:57:14 -08:00
|
|
|
buildInputs = [
|
|
|
|
pytest
|
|
|
|
];
|
2021-01-23 07:00:51 -08:00
|
|
|
checkInputs = [ pytestCheckHook filelock ];
|
2021-03-08 08:57:14 -08:00
|
|
|
propagatedBuildInputs = [ execnet pytest-forked psutil ];
|
2017-05-11 23:36:25 -07:00
|
|
|
|
2021-01-23 07:00:51 -08: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-11 23:36:25 -07:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2017-05-11 23:36:25 -07:00
|
|
|
description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/pytest-dev/pytest-xdist";
|
2017-05-11 23:36:25 -07:00
|
|
|
license = licenses.mit;
|
2018-11-04 07:48:43 -08:00
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
2017-05-11 23:36:25 -07:00
|
|
|
};
|
|
|
|
}
|