1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, mccabe 6, pycodestyle 7, pyflakes 8, pytestCheckHook 9}: 10 11buildPythonPackage rec { 12 pname = "flake8"; 13 version = "6.1.0"; 14 15 disabled = pythonOlder "3.8"; 16 17 format = "setuptools"; 18 19 src = fetchFromGitHub { 20 owner = "PyCQA"; 21 repo = "flake8"; 22 rev = version; 23 hash = "sha256-N8bufkn1CUREHusVc2mQ1YlNr7lrESEZGmlN68bhgbE="; 24 }; 25 26 propagatedBuildInputs = [ 27 mccabe 28 pycodestyle 29 pyflakes 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 ]; 35 36 meta = with lib; { 37 description = "Flake8 is a wrapper around pyflakes, pycodestyle and mccabe."; 38 homepage = "https://github.com/pycqa/flake8"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ dotlambda ]; 41 mainProgram = "flake8"; 42 }; 43}