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

python310Packages.pylint-django: 2.5.2 -> 2.5.3
main
Fabian Affolter 2 years ago committed by GitHub
commit 1703402f27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 41
      pkgs/development/python-modules/django-tastypie/default.nix
  2. 13
      pkgs/development/python-modules/pylint-django/default.nix
  3. 39
      pkgs/development/python-modules/pylint-plugin-utils/default.nix
  4. 14
      pkgs/development/tools/prospector/default.nix
  5. 2
      pkgs/top-level/python-packages.nix

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, python-dateutil
, python-mimeparse
, pythonOlder
}:
buildPythonPackage rec {
pname = "django-tastypie";
version = "0.14.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "django-tastypie";
repo = pname;
rev = "v${version}";
hash = "sha256-O/aVi8BshOZmg9WQxrFlBEOXfgyqJKVK/QlEFG3Edqs=";
};
propagatedBuildInputs = [
python-dateutil
python-mimeparse
];
# Tests requires a Django instance
doCheck = false;
pythonImportsCheck = [
"tastypie"
];
meta = with lib; {
description = "Utilities and helpers for writing Pylint plugins";
homepage = "https://github.com/django-tastypie/django-tastypie";
license = licenses.gpl2Only;
maintainers = with maintainers; [ fab ];
};
}

@ -1,24 +1,25 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, coverage
, django , django
, factory_boy , factory_boy
, fetchFromGitHub , fetchFromGitHub
, isPy3k
, pylint-plugin-utils , pylint-plugin-utils
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pylint-django"; pname = "pylint-django";
version = "2.5.2"; version = "2.5.3";
disabled = !isPy3k; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "PyCQA"; owner = "PyCQA";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-VgGdV1T154LauclGo6jpLPUrYn5vTOWwvO4IXQ9se7c="; hash = "sha256-5xEXjNMkOetRM9NDz0S4DsC6v39YQi34s2s+Fs56hYU=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -27,7 +28,6 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
coverage
factory_boy factory_boy
pytestCheckHook pytestCheckHook
]; ];
@ -38,6 +38,7 @@ buildPythonPackage rec {
"external_factory_boy_noerror" "external_factory_boy_noerror"
"func_noerror_foreign_key_attributes" "func_noerror_foreign_key_attributes"
"func_noerror_foreign_key_key_cls_unbound" "func_noerror_foreign_key_key_cls_unbound"
"test_everything"
]; ];
pythonImportsCheck = [ pythonImportsCheck = [

@ -1,39 +1,46 @@
{ buildPythonPackage { lib
, buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, isPy3k
, lib
# pythonPackages
, pylint , pylint
, pytestCheckHook
, pythonOlder
, toml , toml
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pylint-plugin-utils"; pname = "pylint-plugin-utils";
version = "0.6"; version = "0.7";
disabled = !isPy3k; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "PyCQA"; owner = "PyCQA";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1zapmbczxs1phrwbd0yvpfxhljd2pyv4pi9rwggaq38lcnc325s7"; hash = "sha256-uDsSSUWdlzuQz6umoYLbIotOYNEnLQu041ZZVMRd2ww=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
pylint toml pylint
toml
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pylint_plugin_utils"
]; ];
checkPhase = '' # https://github.com/PyCQA/pylint-plugin-utils/issues/26
python tests.py doCheck = false;
'';
meta = with lib; { meta = with lib; {
description = "Utilities and helpers for writing Pylint plugins"; description = "Utilities and helpers for writing Pylint plugins";
homepage = "https://github.com/PyCQA/pylint-plugin-utils"; homepage = "https://github.com/PyCQA/pylint-plugin-utils";
license = licenses.gpl2; license = licenses.gpl2Only;
maintainers = with maintainers; [ maintainers = with maintainers; [ kamadorueda ];
kamadorueda
];
}; };
} }

@ -11,20 +11,22 @@ with python3.pkgs;
buildPythonApplication rec { buildPythonApplication rec {
pname = "prospector"; pname = "prospector";
version = "1.5.1"; version = "1.7.7";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.6.1"; disabled = pythonOlder "3.6.1";
src = pkgs.fetchFromGitHub { src = pkgs.fetchFromGitHub {
owner = "PyCQA"; owner = "PyCQA";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "17f822cxrvcvnrzdx1a9fyi9afljq80b6g6z1k2bqa1vs21gwv7l"; hash = "sha256-sbPZmVeJtNphtjuZEfKcUgty9bJ3E/2Ya9RuX3u/XEs=";
}; };
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace 'pep8-naming = ">=0.3.3,<=0.10.0"' 'pep8-naming = "*"' --replace 'pep8-naming = ">=0.3.3,<=0.10.0"' 'pep8-naming = "*"' \
--replace 'mccabe = "^0.6.0"' 'mccabe = "*"'
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
@ -61,9 +63,7 @@ buildPythonApplication rec {
meta = with lib; { meta = with lib; {
description = "Tool to analyse Python code and output information about errors, potential problems, convention violations and complexity"; description = "Tool to analyse Python code and output information about errors, potential problems, convention violations and complexity";
homepage = "https://github.com/PyCQA/prospector"; homepage = "https://github.com/PyCQA/prospector";
license = licenses.gpl2; license = licenses.gpl2Plus;
maintainers = with maintainers; [ maintainers = with maintainers; [ kamadorueda ];
kamadorueda
];
}; };
} }

@ -2399,6 +2399,8 @@ in {
django-taggit = callPackage ../development/python-modules/django-taggit { }; django-taggit = callPackage ../development/python-modules/django-taggit { };
django-tastypie = callPackage ../development/python-modules/django-tastypie { };
django-timezone-field = callPackage ../development/python-modules/django-timezone-field { }; django-timezone-field = callPackage ../development/python-modules/django-timezone-field { };
django_treebeard = callPackage ../development/python-modules/django_treebeard { }; django_treebeard = callPackage ../development/python-modules/django_treebeard { };

Loading…
Cancel
Save