1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

Merge pull request #68842 from Ma27/disable-pytest5-on-python2

python2Packages.pytest_5: disable build
This commit is contained in:
Maximilian Bosch 2019-09-16 01:20:28 +02:00 committed by GitHub
commit d8f5ad9948
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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