Merge pull request #141761 from flokli/python37-flake8

python37Packages.flake8: don't run tests if older than python3.8
This commit is contained in:
Florian Klink 2021-10-17 00:14:20 +02:00 committed by GitHub
commit cc7b700c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,9 @@ buildPythonPackage rec {
++ lib.optionals (pythonOlder "3.5") [ typing ]
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
# Tests fail on Python 3.7 due to importlib using a deprecated interface
doCheck = !(pythonOlder "3.8");
# fixtures fail to initialize correctly
checkPhase = ''
py.test tests --ignore=tests/integration/test_checker.py