Skip to content

Commit 37cb24a

Browse files
committedMay 15, 2017
python.pkgs.pytest_xdist: 1.14 -> 1.16.0
1 parent e5a4da2 commit 37cb24a

File tree

1 file changed

+11
-7
lines changed
  • pkgs/development/python-modules/pytest-xdist

1 file changed

+11
-7
lines changed
 

‎pkgs/development/python-modules/pytest-xdist/default.nix

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
{ stdenv, fetchzip, buildPythonPackage, isPy3k, execnet, pytest, setuptools_scm }:
1+
{ stdenv, fetchPypi, buildPythonPackage, isPy3k, execnet, pytest, setuptools_scm }:
22

33
buildPythonPackage rec {
44
name = "${pname}-${version}";
55
pname = "pytest-xdist";
6-
version = "1.14";
6+
version = "1.16.0";
77

8-
src = fetchzip {
9-
url = "mirror://pypi/p/pytest-xdist/${name}.zip";
10-
sha256 = "18j6jq4r47cbbgnci0bbp0kjr9w12hzw7fh4dmsbm072jmv8c0gx";
8+
src = fetchPypi {
9+
inherit pname version;
10+
sha256 = "42e5a1e5da9d7cff3e74b07f8692598382f95624f234ff7e00a3b1237e0feba2";
1111
};
1212

1313
buildInputs = [ pytest setuptools_scm ];
1414
propagatedBuildInputs = [ execnet ];
1515

16-
postPatch = stdenv.lib.optionalString stdenv.isDarwin ''
16+
postPatch = ''
1717
rm testing/acceptance_test.py testing/test_remote.py testing/test_slavemanage.py
1818
'';
1919

2020
checkPhase = ''
21-
py.test
21+
py.test testing
2222
'';
2323

24+
# Only test on 3.x
25+
# INTERNALERROR> AttributeError: 'NoneType' object has no attribute 'getconsumer'
26+
doCheck = isPy3k;
27+
2428
meta = with stdenv.lib; {
2529
description = "py.test xdist plugin for distributed testing and loop-on-failing modes";
2630
homepage = https://github.com/pytest-dev/pytest-xdist;

0 commit comments

Comments
 (0)
Please sign in to comment.