python311Packages.pylint-django: refactor

- disable failing tests
This commit is contained in:
Fabian Affolter 2024-01-20 17:33:16 +01:00
parent 4b2a66591c
commit de6d7c3774

View File

@ -1,8 +1,11 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, django , django
, django-tables2
, django-tastypie
, factory-boy , factory-boy
, fetchFromGitHub , fetchFromGitHub
, poetry-core
, pylint-plugin-utils , pylint-plugin-utils
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
@ -11,33 +14,43 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "pylint-django"; pname = "pylint-django";
version = "2.5.4"; version = "2.5.4";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "PyCQA"; owner = "PyCQA";
repo = pname; repo = "pylint-django";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
hash = "sha256-MNgu3LvFoohXA+JzUiHIaYFw0ssEe+H5T8Ea56LcGuI="; hash = "sha256-MNgu3LvFoohXA+JzUiHIaYFw0ssEe+H5T8Ea56LcGuI=";
}; };
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [ propagatedBuildInputs = [
django
pylint-plugin-utils pylint-plugin-utils
]; ];
passthru.optional-dependencies = {
with_django = [
django
];
};
nativeCheckInputs = [ nativeCheckInputs = [
django-tables2
django-tastypie
factory-boy factory-boy
pytestCheckHook pytestCheckHook
]; ];
disabledTests = [ disabledTests = [
# AttributeError, AssertionError # AttributeError: module 'pylint.interfaces' has no attribute 'IAstroidChecker'
"external_django_tables2_noerror_meta_class" "test_migrations_plugin"
"external_tastypie_noerror_foreign_key"
"func_noerror_model_unicode_lambda" "func_noerror_model_unicode_lambda"
"0001_noerror_initial" "test_linter_should_be_pickleable_with_pylint_django_plugin_installed"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [
@ -47,6 +60,7 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Pylint plugin to analyze Django applications"; description = "Pylint plugin to analyze Django applications";
homepage = "https://github.com/PyCQA/pylint-django"; homepage = "https://github.com/PyCQA/pylint-django";
changelog = "https://github.com/pylint-dev/pylint-django/releases/tag/v${version}";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ kamadorueda ]; maintainers = with maintainers; [ kamadorueda ];
}; };