13 buildPythonPackage rec {
17 disabled = pythonOlder "3.6";
19 format = "setuptools";
21 src = fetchFromGitHub {
25 hash = "sha256-Os8HIoM07/iOBMm+0WxdQj32pJJOJ8mkh+yLHpqkLXg=";
28 propagatedBuildInputs = [
32 ] ++ lib.optionals (pythonOlder "3.8") [
36 # Tests fail on Python 3.7 due to importlib using a deprecated interface
37 doCheck = pythonAtLeast "3.7";
44 description = "Flake8 is a wrapper around pyflakes, pycodestyle and mccabe.";
45 homepage = "https://github.com/pycqa/flake8";
46 license = licenses.mit;
47 maintainers = with maintainers; [ dotlambda ];