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