e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, django
|
|
, factory-boy
|
|
, fetchFromGitHub
|
|
, pylint-plugin-utils
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pylint-django";
|
|
version = "2.5.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "PyCQA";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-MNgu3LvFoohXA+JzUiHIaYFw0ssEe+H5T8Ea56LcGuI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
django
|
|
pylint-plugin-utils
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
factory-boy
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# AttributeError, AssertionError
|
|
"external_django_tables2_noerror_meta_class"
|
|
"external_tastypie_noerror_foreign_key"
|
|
"func_noerror_model_unicode_lambda"
|
|
"0001_noerror_initial"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pylint_django"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Pylint plugin to analyze Django applications";
|
|
homepage = "https://github.com/PyCQA/pylint-django";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ kamadorueda ];
|
|
};
|
|
}
|