1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, setuptools_scm
6, pytestCheckHook
7, filelock
8, execnet
9, pytest
10, pytest-forked
11, psutil
12}:
13
14buildPythonPackage rec {
15 pname = "pytest-xdist";
16 version = "2.2.1";
17 disabled = isPy27;
18
19 src = fetchPypi {
20 inherit pname version;
21 sha256 = "718887296892f92683f6a51f25a3ae584993b06f7076ce1e1fd482e59a8220a2";
22 };
23
24 nativeBuildInputs = [ setuptools_scm ];
25 buildInputs = [
26 pytest
27 ];
28 checkInputs = [ pytestCheckHook filelock ];
29 propagatedBuildInputs = [ execnet pytest-forked psutil ];
30
31 # access file system
32 disabledTests = [
33 "test_distribution_rsyncdirs_example"
34 "test_rsync_popen_with_path"
35 "test_popen_rsync_subdir"
36 "test_rsync_report"
37 "test_init_rsync_roots"
38 "test_rsyncignore"
39 ];
40
41 meta = with lib; {
42 description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
43 homepage = "https://github.com/pytest-dev/pytest-xdist";
44 license = licenses.mit;
45 maintainers = with maintainers; [ dotlambda ];
46 };
47}