anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / flake8-length / default.nix
blob1e88a0280cc8b3e1ec6d31d50a59b541eaa5c3b5
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   flake8,
6   flit-core,
7   pytestCheckHook,
8   pythonOlder,
9 }:
11 buildPythonPackage rec {
12   pname = "flake8-length";
13   version = "0.3.1";
14   format = "pyproject";
16   disabled = pythonOlder "3.6";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-Dr1hTCU2G1STczXJsUPMGFYs1NpIAk1I95vxXsRTtRA=";
21   };
23   nativeBuildInputs = [ flit-core ];
25   propagatedBuildInputs = [ flake8 ];
27   nativeCheckInputs = [ pytestCheckHook ];
29   pythonImportsCheck = [ "flake8_length" ];
31   pytestFlagsArray = [ "tests/" ];
33   meta = with lib; {
34     description = "Flake8 plugin for a smart line length validation";
35     homepage = "https://github.com/orsinium-labs/flake8-length";
36     changelog = "https://github.com/orsinium-labs/flake8-length/releases/tag/${version}";
37     license = licenses.mit;
38     maintainers = with maintainers; [ sauyon ];
39   };