mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
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:
parent
e224b17fec
commit
5f1c02a1c9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user