depot/third_party/nixpkgs/pkgs/development/python-modules/pylint-flask/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

50 lines
928 B
Nix

{ 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 = "A Pylint plugin to analyze Flask applications";
homepage = "https://github.com/jschaf/pylint-flask";
license = licenses.gpl2Only;
maintainers = with maintainers; [ kamadorueda ];
};
}