1{ stdenv, fetchPypi, buildPythonPackage, isPy3k, execnet, pytest, setuptools_scm, pytest-forked }:
2
3buildPythonPackage rec {
4 name = "${pname}-${version}";
5 pname = "pytest-xdist";
6 version = "1.20.0";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "7924d45c2430191fe3679a58116c74ceea13307d7822c169d65fd59a24b3a4fe";
11 };
12
13 buildInputs = [ pytest setuptools_scm pytest-forked];
14 propagatedBuildInputs = [ execnet ];
15
16 postPatch = ''
17 rm testing/acceptance_test.py testing/test_remote.py testing/test_slavemanage.py
18 '';
19
20 checkPhase = ''
21 py.test testing
22 '';
23
24 # Only test on 3.x
25 # INTERNALERROR> AttributeError: 'NoneType' object has no attribute 'getconsumer'
26 doCheck = isPy3k;
27
28 meta = with stdenv.lib; {
29 description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
30 homepage = https://github.com/pytest-dev/pytest-xdist;
31 license = licenses.mit;
32 };
33}