From 8c88726050f3c9902b9e67a5c48632f9a096581a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 18 Jan 2025 00:37:40 +0100 Subject: [PATCH] python313Packages.django-allauth: 0.61.1 -> 65.3.1 --- .../python-modules/django-allauth/default.nix | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/django-allauth/default.nix b/pkgs/development/python-modules/django-allauth/default.nix index 0b5ce8d6154f44..21d2102cabc80a 100644 --- a/pkgs/development/python-modules/django-allauth/default.nix +++ b/pkgs/development/python-modules/django-allauth/default.nix @@ -12,19 +12,22 @@ gettext, # dependencies + asgiref, django, + + # optional-dependencies + fido2, python3-openid, + python3-saml, requests, requests-oauthlib, pyjwt, - - # optional-dependencies - python3-saml, qrcode, # tests pillow, pytestCheckHook, + pytest-asyncio, pytest-django, # passthru tests @@ -33,36 +36,41 @@ buildPythonPackage rec { pname = "django-allauth"; - version = "0.61.1"; + version = "65.3.1"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "pennersr"; repo = "django-allauth"; tag = version; - hash = "sha256-C9SYlL1yMnSb+Zpi2opvDw1stxAHuI9/XKHyvkM36Cg="; + hash = "sha256-IgadrtOQt3oY2U/+JWBs5v97aaWz5oinz5QUdGXBqO4="; }; nativeBuildInputs = [ gettext + ]; + + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ + asgiref django - pyjwt - python3-openid - requests - requests-oauthlib - ] ++ pyjwt.optional-dependencies.crypto; + ]; - preBuild = "${python.interpreter} -m django compilemessages"; + preBuild = '' + ${python.interpreter} -m django compilemessages + ''; optional-dependencies = { + mfa = [ fido2 qrcode ]; + openid = [ python3-openid ]; saml = [ python3-saml ]; - mfa = [ qrcode ]; + socialaccount = [ requests requests-oauthlib pyjwt ] ++ pyjwt.optional-dependencies.crypto; + steam = [ python3-openid ]; }; pythonImportsCheck = [ "allauth" ]; @@ -70,6 +78,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pillow pytestCheckHook + pytest-asyncio pytest-django ] ++ lib.flatten (builtins.attrValues optional-dependencies);