mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #263070 from wegank/flake8-cleanup
python310Packages.{flake8,pyflakes}: cleanup
This commit is contained in:
commit
0085550c53
@ -5,8 +5,6 @@
|
||||
, mccabe
|
||||
, pycodestyle
|
||||
, pyflakes
|
||||
, importlib-metadata
|
||||
, pythonAtLeast
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
@ -29,13 +27,8 @@ buildPythonPackage rec {
|
||||
mccabe
|
||||
pycodestyle
|
||||
pyflakes
|
||||
] ++ lib.optionals (pythonOlder "3.8") [
|
||||
importlib-metadata
|
||||
];
|
||||
|
||||
# Tests fail on Python 3.7 due to importlib using a deprecated interface
|
||||
doCheck = pythonAtLeast "3.7";
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
@ -9,7 +9,7 @@ buildPythonPackage rec {
|
||||
pname = "pyflakes";
|
||||
version = "3.1.0";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
format = "setuptools";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user