Skip to content

Commit

Permalink
python37Packages.flake8: don't run tests if older than python3.8
Browse files Browse the repository at this point in the history
Tests fail on Python 3.7 due to importlib using a deprecated interface.

Context: python/importlib_metadata#298
  • Loading branch information
flokli committed Oct 15, 2021
1 parent 126f977 commit aba8848
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/development/python-modules/flake8/default.nix
Expand Up @@ -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
Expand Down

0 comments on commit aba8848

Please sign in to comment.