1{
2 lib,
3 astroid,
4 buildPythonPackage,
5 fetchPypi,
6 pylint,
7 pylint-plugin-utils,
8 pythonOlder,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "pylint-flask";
14 version = "0.6";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-9Nl94iFr97/OB8nAixZul4/p8nJd4qUKmEWpfefjFRc=";
22 };
23
24 nativeBuildInputs = [ setuptools ];
25
26 buildInputs = [ pylint ];
27
28 propagatedBuildInputs = [
29 astroid
30 pylint-plugin-utils
31 ];
32
33 # Tests require a very old version of pylint
34 # also tests are only available at GitHub, with an old release tag
35 doCheck = false;
36
37 pythonImportsCheck = [ "pylint_flask" ];
38
39 meta = with lib; {
40 description = "Pylint plugin to analyze Flask applications";
41 homepage = "https://github.com/jschaf/pylint-flask";
42 license = licenses.gpl2Only;
43 maintainers = with maintainers; [ kamadorueda ];
44 };
45}