Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 pythonOlder, 5 fetchFromGitHub, 6 setuptools, 7 mccabe, 8 pycodestyle, 9 pyflakes, 10 pytestCheckHook, 11}: 12 13buildPythonPackage rec { 14 pname = "flake8"; 15 version = "7.1.0"; 16 17 disabled = pythonOlder "3.8"; 18 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "PyCQA"; 23 repo = "flake8"; 24 rev = version; 25 hash = "sha256-jkRr/k/XjiKOkcd4jlOQTnnFun7/hMHdVUWBlS1QZ1E="; 26 }; 27 28 nativeBuildInputs = [ setuptools ]; 29 30 propagatedBuildInputs = [ 31 mccabe 32 pycodestyle 33 pyflakes 34 ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 meta = with lib; { 39 description = "Modular source code checker: pep8, pyflakes and co"; 40 homepage = "https://github.com/PyCQA/flake8"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ dotlambda ]; 43 mainProgram = "flake8"; 44 }; 45}