2017-08-24 18:34:20 +01:00
|
|
|
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, execnet, pytest, setuptools_scm, pytest-forked }:
|
2017-05-12 07:36:25 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "pytest-xdist";
|
2018-01-20 10:59:31 +00:00
|
|
|
version = "1.22.0";
|
2017-05-12 07:36:25 +01:00
|
|
|
|
2017-05-15 13:36:30 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-01-20 10:59:31 +00:00
|
|
|
sha256 = "65228a859191f2c74ee68c127317eefe35eedd3d43fc1431f19240663b0cafcd";
|
2017-05-12 07:36:25 +01:00
|
|
|
};
|
|
|
|
|
2017-08-24 18:34:20 +01:00
|
|
|
buildInputs = [ pytest setuptools_scm pytest-forked];
|
2017-05-12 07:36:25 +01:00
|
|
|
propagatedBuildInputs = [ execnet ];
|
|
|
|
|
2017-05-15 13:36:30 +01:00
|
|
|
postPatch = ''
|
2017-05-12 07:36:25 +01:00
|
|
|
rm testing/acceptance_test.py testing/test_remote.py testing/test_slavemanage.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
2017-05-15 13:36:30 +01:00
|
|
|
py.test testing
|
2017-05-12 07:36:25 +01:00
|
|
|
'';
|
|
|
|
|
2017-05-15 13:36:30 +01:00
|
|
|
# Only test on 3.x
|
|
|
|
# INTERNALERROR> AttributeError: 'NoneType' object has no attribute 'getconsumer'
|
|
|
|
doCheck = isPy3k;
|
|
|
|
|
2017-05-12 07:36:25 +01:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|