Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / flake8 / default.nix
blob7a3bd82a514567d1af83e3b7d036968c0c1bc2ea
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , mccabe
6 , pycodestyle
7 , pyflakes
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "flake8";
13   version = "6.1.0";
15   disabled = pythonOlder "3.8";
17   format = "setuptools";
19   src = fetchFromGitHub {
20     owner = "PyCQA";
21     repo = "flake8";
22     rev = version;
23     hash = "sha256-N8bufkn1CUREHusVc2mQ1YlNr7lrESEZGmlN68bhgbE=";
24   };
26   propagatedBuildInputs = [
27     mccabe
28     pycodestyle
29     pyflakes
30   ];
32   nativeCheckInputs = [
33     pytestCheckHook
34   ];
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   };