depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-xdist/default.nix
Default email bb5b50588c Project import generated by Copybara.
GitOrigin-RevId: 9816b99e71c3504b0b4c1f8b2e004148460029d4
2021-02-19 20:06:45 +01:00

44 lines
1,015 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, isPy27
, setuptools_scm
, pytestCheckHook
, filelock
, execnet
, pytest
, pytest-forked
, psutil
}:
buildPythonPackage rec {
pname = "pytest-xdist";
version = "2.2.0";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "1d8edbb1a45e8e1f8e44b1260583107fc23f8bc8da6d18cb331ff61d41258ecf";
};
nativeBuildInputs = [ setuptools_scm ];
checkInputs = [ pytestCheckHook filelock ];
propagatedBuildInputs = [ execnet pytest pytest-forked psutil ];
# 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"
];
meta = with lib; {
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 ];
};
}