python37Packages.flake8: don't run tests if older than python3.8

Tests fail on Python 3.7 due to importlib using a deprecated interface.

Context: https://github.com/python/importlib_metadata/issues/298
This commit is contained in:
Florian Klink
2021-10-15 14:33:16 +02:00
parent e435302d70
commit 37771f6fe0
@@ -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