Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at gcc-offload 46 lines 927 B view raw
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.1"; 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-6iCZEapftHqd9okJS1wMzIjjmWahrmmZtXd7SUMVcmE="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 mccabe 32 pycodestyle 33 pyflakes 34 ]; 35 36 nativeCheckInputs = [ pytestCheckHook ]; 37 38 meta = with lib; { 39 changelog = "https://github.com/PyCQA/flake8/blob/${src.rev}/docs/source/release-notes/${version}.rst"; 40 description = "Modular source code checker: pep8, pyflakes and co"; 41 homepage = "https://github.com/PyCQA/flake8"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ dotlambda ]; 44 mainProgram = "flake8"; 45 }; 46}