Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / flake8-length / default.nix
blob9214a92ce51718073efafac5e950d5072e5c398c
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , flake8
5 , flit-core
6 , pytestCheckHook
7 , pythonOlder
8 }:
10 buildPythonPackage rec {
11   pname = "flake8-length";
12   version = "0.3.1";
13   format = "pyproject";
15   disabled = pythonOlder "3.6";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA=";
20   };
22   nativeBuildInputs = [
23     flit-core
24   ];
26   propagatedBuildInputs = [
27     flake8
28   ];
30   nativeCheckInputs = [
31     pytestCheckHook
32   ];
34   pythonImportsCheck = [
35     "flake8_length"
36   ];
38   pytestFlagsArray = [
39     "tests/"
40   ];
42   meta = with lib; {
43     description = "Flake8 plugin for a smart line length validation";
44     homepage = "https://github.com/orsinium-labs/flake8-length";
45     changelog = "https://github.com/orsinium-labs/flake8-length/releases/tag/${version}";
46     license = licenses.mit;
47     maintainers = with maintainers; [ sauyon ];
48   };