about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pylint-flask/default.nix
blob: 375d1e1757745dd2bad5bc80192d8f6104657449 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{
  lib,
  astroid,
  buildPythonPackage,
  fetchPypi,
  pylint,
  pylint-plugin-utils,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "pylint-flask";
  version = "0.6";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-9Nl94iFr97/OB8nAixZul4/p8nJd4qUKmEWpfefjFRc=";
  };

  nativeBuildInputs = [ setuptools ];

  buildInputs = [ pylint ];

  propagatedBuildInputs = [
    astroid
    pylint-plugin-utils
  ];

  # Tests require a very old version of pylint
  # also tests are only available at GitHub, with an old release tag
  doCheck = false;

  pythonImportsCheck = [ "pylint_flask" ];

  meta = with lib; {
    description = "Pylint plugin to analyze Flask applications";
    homepage = "https://github.com/jschaf/pylint-flask";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ kamadorueda ];
  };
}