2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
django,
|
|
|
|
django-tables2,
|
|
|
|
django-tastypie,
|
|
|
|
factory-boy,
|
|
|
|
fetchFromGitHub,
|
|
|
|
poetry-core,
|
|
|
|
pylint-plugin-utils,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pylint-django";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.5.4";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "PyCQA";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "pylint-django";
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-MNgu3LvFoohXA+JzUiHIaYFw0ssEe+H5T8Ea56LcGuI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ poetry-core ];
|
2024-01-25 14:12:00 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ pylint-plugin-utils ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
with_django = [ django ];
|
2024-01-25 14:12:00 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-01-25 14:12:00 +00:00
|
|
|
django-tables2
|
|
|
|
django-tastypie
|
2023-10-19 13:55:26 +00:00
|
|
|
factory-boy
|
2021-12-06 16:07:01 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2024-01-25 14:12:00 +00:00
|
|
|
# AttributeError: module 'pylint.interfaces' has no attribute 'IAstroidChecker'
|
|
|
|
"test_migrations_plugin"
|
2022-07-18 16:21:45 +00:00
|
|
|
"func_noerror_model_unicode_lambda"
|
2024-01-25 14:12:00 +00:00
|
|
|
"test_linter_should_be_pickleable_with_pylint_django_plugin_installed"
|
2024-06-20 14:57:18 +00:00
|
|
|
"func_noerror_model_fields"
|
|
|
|
"func_noerror_form_fields"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pylint_django" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-06 16:07:01 +00:00
|
|
|
description = "Pylint plugin to analyze Django applications";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/PyCQA/pylint-django";
|
2024-01-25 14:12:00 +00:00
|
|
|
changelog = "https://github.com/pylint-dev/pylint-django/releases/tag/v${version}";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ kamadorueda ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|