1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-24 19:08:30 +00:00
nixpkgs/pkgs/development/python-modules/pytest-xdist/default.nix

34 lines
930 B
Nix
Raw Normal View History

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";
2017-12-30 11:26:42 +00:00
version = "1.21.0";
2017-05-12 07:36:25 +01:00
src = fetchPypi {
inherit pname version;
2017-12-30 11:26:42 +00:00
sha256 = "0b8622435e3c0650a8d5a07b73a7f9c4f79b52d7ed060536a6041f0da423ba8e";
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 ];
postPatch = ''
2017-05-12 07:36:25 +01:00
rm testing/acceptance_test.py testing/test_remote.py testing/test_slavemanage.py
'';
checkPhase = ''
py.test testing
2017-05-12 07:36:25 +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;
};
}