python310Packages.django-guardian: normalise attr, add pythonImportsCheck, adopt

This commit is contained in:
Sandro Jäckel 2022-05-19 01:46:30 +02:00
parent 7c035dbb75
commit 1568b6c5fd
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
3 changed files with 22 additions and 6 deletions

View File

@ -1,7 +1,13 @@
{ lib, buildPythonPackage, fetchPypi
, django-environ, mock, django
, pytest, pytest-runner, pytest-django
{ lib
, buildPythonPackage
, fetchPypi
, django-environ
, mock
, django
, pytestCheckHook
, pytest-django
}:
buildPythonPackage rec {
pname = "django-guardian";
version = "2.4.0";
@ -11,12 +17,21 @@ buildPythonPackage rec {
sha256 = "c58a68ae76922d33e6bdc0e69af1892097838de56e93e78a8361090bcd9f89a0";
};
checkInputs = [ pytest pytest-runner pytest-django django-environ mock ];
propagatedBuildInputs = [ django ];
checkInputs = [
django-environ
mock
pytestCheckHook
pytest-django
];
pythonImportsCheck = [ "guardian" ];
meta = with lib; {
description = "Per object permissions for Django";
homepage = "https://github.com/django-guardian/django-guardian";
license = [ licenses.mit licenses.bsd2 ];
license = with licenses; [ mit bsd2 ];
maintainers = with maintainers; [ ];
};
}

View File

@ -57,6 +57,7 @@ mapAliases ({
django_appconf = django-appconf; # added 2022-03-03
django_environ = django-environ; # added 2021-12-25
django_extensions = django-extensions; # added 2022-01-09
django_guardian = django-guardian; # added 2022-05-19
django_modelcluster = django-modelcluster; # added 2022-04-02
django_redis = django-redis; # added 2021-10-11
django_taggit = django-taggit; # added 2021-10-11

View File

@ -2321,7 +2321,7 @@ in {
django-gravatar2 = callPackage ../development/python-modules/django-gravatar2 { };
django_guardian = callPackage ../development/python-modules/django_guardian { };
django-guardian = callPackage ../development/python-modules/django-guardian { };
django-haystack = callPackage ../development/python-modules/django-haystack { };