Unverified Commit a180882e authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #282373 from fabaff/pylint-django-fix

python311Packages.pylint-plugin-utils: 0.7 -> 0.8.2, python311Packages.pylint-django: refactor 
parents 361332f5 8406235c
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -9,17 +9,19 @@
, md-toc
, mdformat
, newversion
, pip
, poetry-core
, pyparsing
, pytestCheckHook
, pythonOlder
, setuptools
, typing-extensions
}:

buildPythonPackage rec {
  pname = "mypy-boto3-builder";
  version = "7.21.0";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.10";

@@ -43,8 +45,10 @@ buildPythonPackage rec {
    md-toc
    mdformat
    newversion
    pip
    pyparsing
    setuptools
    typing-extensions
  ];

  nativeCheckInputs = [
+21 −7
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, django
, django-tables2
, django-tastypie
, factory-boy
, fetchFromGitHub
, poetry-core
, pylint-plugin-utils
, pytestCheckHook
, pythonOlder
@@ -11,33 +14,43 @@
buildPythonPackage rec {
  pname = "pylint-django";
  version = "2.5.4";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "PyCQA";
    repo = pname;
    repo = "pylint-django";
    rev = "refs/tags/v${version}";
    hash = "sha256-MNgu3LvFoohXA+JzUiHIaYFw0ssEe+H5T8Ea56LcGuI=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    django
    pylint-plugin-utils
  ];

  passthru.optional-dependencies = {
    with_django = [
      django
    ];
  };

  nativeCheckInputs = [
    django-tables2
    django-tastypie
    factory-boy
    pytestCheckHook
  ];

  disabledTests = [
    # AttributeError, AssertionError
    "external_django_tables2_noerror_meta_class"
    "external_tastypie_noerror_foreign_key"
    # AttributeError: module 'pylint.interfaces' has no attribute 'IAstroidChecker'
    "test_migrations_plugin"
    "func_noerror_model_unicode_lambda"
    "0001_noerror_initial"
    "test_linter_should_be_pickleable_with_pylint_django_plugin_installed"
  ];

  pythonImportsCheck = [
@@ -47,6 +60,7 @@ buildPythonPackage rec {
  meta = with lib; {
    description = "Pylint plugin to analyze Django applications";
    homepage = "https://github.com/PyCQA/pylint-django";
    changelog = "https://github.com/pylint-dev/pylint-django/releases/tag/v${version}";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ kamadorueda ];
  };
+10 −5
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pylint
, pytestCheckHook
, pythonOlder
@@ -9,18 +10,22 @@

buildPythonPackage rec {
  pname = "pylint-plugin-utils";
  version = "0.7";
  format = "setuptools";
  version = "0.8.2";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "PyCQA";
    repo = pname;
    rev = version;
    hash = "sha256-uDsSSUWdlzuQz6umoYLbIotOYNEnLQu041ZZVMRd2ww=";
    repo = "pylint-plugin-utils";
    rev = "refs/tags/${version}";
    hash = "sha256-xuPU1txfB+6+zJjtlfvNA950S5n7/PWPPFn1F3RtvCc=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    pylint
    toml