blob: 2e2975e65968a3d2f60e9d6757ef723bce1e08f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, execnet, pytest, setuptools_scm, pytest-forked }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pytest-xdist";
version = "1.21.0";
src = fetchPypi {
inherit pname version;
sha256 = "0b8622435e3c0650a8d5a07b73a7f9c4f79b52d7ed060536a6041f0da423ba8e";
};
buildInputs = [ pytest setuptools_scm pytest-forked];
propagatedBuildInputs = [ execnet ];
postPatch = ''
rm testing/acceptance_test.py testing/test_remote.py testing/test_slavemanage.py
'';
checkPhase = ''
py.test testing
'';
# Only test on 3.x
# INTERNALERROR> AttributeError: 'NoneType' object has no attribute 'getconsumer'
doCheck = isPy3k;
meta = with stdenv.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;
};
}
|