mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-22 16:00:41 +08:00
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
74 lines
1.4 KiB
Nix
74 lines
1.4 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, pytestCheckHook
|
|
, filelock
|
|
, execnet
|
|
, pytest
|
|
, psutil
|
|
, setproctitle
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pytest-xdist";
|
|
version = "3.1.0";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
format = "pyproject";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-QP2481RJIcXfzUhqwIDOIocOcdgs7W0uePqXwq3dSAw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
buildInputs = [
|
|
pytest
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
execnet
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
filelock
|
|
pytestCheckHook
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
psutil = [ psutil ];
|
|
setproctitle = [ setproctitle ];
|
|
};
|
|
|
|
pytestFlagsArray = [
|
|
# pytest can already use xdist at this point
|
|
"--numprocesses=$NIX_BUILD_CORES"
|
|
];
|
|
|
|
# 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"
|
|
# flakey
|
|
"test_internal_errors_propagate_to_controller"
|
|
];
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
meta = with lib; {
|
|
description = "Pytest 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 ];
|
|
};
|
|
}
|