python2Packages.pytest_5: disable build

`pytest_5` only supports python3[1], however the python2 build was enabled by
separating pytest_4 and pytest_5 into two different attributes.

ZHF #68361

[1] https://docs.pytest.org/en/latest/py27-py34-deprecation.html
This commit is contained in:
Maximilian Bosch 2019-09-15 16:02:10 +02:00
parent e224b17fec
commit 5f1c02a1c9
No known key found for this signature in database
GPG Key ID: 091DBF4D1FC46B8E

View File

@ -6,6 +6,8 @@ buildPythonPackage rec {
version = "5.1.0";
pname = "pytest";
disabled = !isPy3k;
preCheck = ''
# don't test bash builtins
rm testing/test_argcomplete.py
@ -19,7 +21,6 @@ buildPythonPackage rec {
checkInputs = [ hypothesis mock ];
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ attrs py setuptools six pluggy more-itertools atomicwrites wcwidth packaging ]
++ stdenv.lib.optionals (!isPy3k) [ funcsigs ]
++ stdenv.lib.optionals (pythonOlder "3.6") [ pathlib2 ];
doCheck = !isPyPy; # https://github.com/pytest-dev/pytest/issues/3460