From dbda9b3f58a0dbf9fe88af977fe635e10e21ee27 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Tue, 5 Aug 2025 04:37:40 +0200 Subject: [PATCH] python3Packages.django-guardian: 2.4.0 -> 3.0.3 This commit was automatically generated using update-python-libraries. --- .../django-guardian/default.nix | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/pkgs/development/python-modules/django-guardian/default.nix b/pkgs/development/python-modules/django-guardian/default.nix index a6727b8f055b..2f03409bcd59 100644 --- a/pkgs/development/python-modules/django-guardian/default.nix +++ b/pkgs/development/python-modules/django-guardian/default.nix @@ -1,29 +1,32 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, django-environ, - mock, django, pytestCheckHook, pytest-django, + setuptools, }: buildPythonPackage rec { pname = "django-guardian"; - version = "2.4.0"; - format = "setuptools"; + version = "3.0.3"; + pyproject = true; - src = fetchPypi { - inherit pname version; - sha256 = "c58a68ae76922d33e6bdc0e69af1892097838de56e93e78a8361090bcd9f89a0"; + src = fetchFromGitHub { + owner = "django-guardian"; + repo = "django-guardian"; + tag = version; + hash = "sha256-0rOEue+OApWQmSBuwTLnu/yU5HUa5pgvVBUG5fT4iwY="; }; - propagatedBuildInputs = [ django ]; + build-system = [ setuptools ]; + + dependencies = [ django ]; nativeCheckInputs = [ django-environ - mock pytestCheckHook pytest-django ]; @@ -33,10 +36,7 @@ buildPythonPackage rec { meta = with lib; { description = "Per object permissions for Django"; homepage = "https://github.com/django-guardian/django-guardian"; - license = with licenses; [ - mit - bsd2 - ]; + license = with licenses; [ bsd2 ]; maintainers = [ ]; }; }