2021-02-19 19:06:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, setuptools_scm
|
|
|
|
, pytestCheckHook
|
|
|
|
, filelock
|
|
|
|
, execnet
|
|
|
|
, pytest
|
|
|
|
, pytest-forked
|
|
|
|
, psutil
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-xdist";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "2.2.1";
|
2021-02-19 19:06:45 +00:00
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "718887296892f92683f6a51f25a3ae584993b06f7076ce1e1fd482e59a8220a2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
nativeBuildInputs = [ setuptools_scm ];
|
|
|
|
checkInputs = [ pytestCheckHook filelock ];
|
|
|
|
propagatedBuildInputs = [ execnet pytest 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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
|
|
|
|
homepage = "https://github.com/pytest-dev/pytest-xdist";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|