gnu: python-django-allauth: Fix tests.

* gnu/packages/django.scm (python-django-allauth):
[source]: Switch to git-fetch.
[arguments]: Improve style.
[inputs]: Add xmlsec-openssl.
[native-inputs]: Remove python-wheel.

Change-Id: I136728a1de889b5ee282f2ded6fec45b412a1c75
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Nicolas Graves 2025-09-21 17:57:16 +02:00 committed by Sharlatan Hellseher
parent 205b92346c
commit c24ac49d7e
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -612,24 +612,27 @@ them do this.")
(version "65.3.1") (version "65.3.1")
(source (source
(origin (origin
(method url-fetch) (method git-fetch)
(uri (pypi-uri "django_allauth" version)) (uri (git-reference
(url "https://github.com/pennersr/django-allauth")
(commit version)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32 "1vm8q5jp854lrykqirmklmlppzz6dih2bzjgv4c7mdwhsfp9s1i2"))))
"11q56p07g987hsz7v27nrvr2piy72jhyzwjrcis3lxd2f4drabp0"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:test-flags #:test-flags
;; XXX: KeyError: location ;; XXX: KeyError: location
'(list "--ignore=allauth/socialaccount/providers/openid/tests.py") #~(list "--ignore=allauth/socialaccount/providers/openid/tests.py")
#:phases #:phases
#~(modify-phases %standard-phases #~(modify-phases %standard-phases
;; FIXME: This should be fixed in python-xmlsec ;; FIXME: This should be fixed in python-xmlsec
(add-before 'check 'pre-check (add-before 'check 'pre-check
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((lib (search-input-file inputs "lib/libxmlsec1-openssl.so")))
(setenv "LD_LIBRARY_PATH" (setenv "LD_LIBRARY_PATH"
(dirname (search-input-file inputs "lib/libxmlsec1-openssl.so.1.2.37")))))))) (dirname lib))))))))
(propagated-inputs (propagated-inputs
(list python-asgiref (list python-asgiref
python-django python-django
@ -640,12 +643,12 @@ them do this.")
python-requests python-requests
python-requests-oauthlib python-requests-oauthlib
python-python3-saml)) python-python3-saml))
(inputs (list xmlsec-openssl))
(native-inputs (native-inputs
(list tzdata-for-tests (list tzdata-for-tests
python-pytest python-pytest
python-pytest-django python-pytest-django
python-setuptools python-setuptools))
python-wheel))
(home-page "https://github.com/pennersr/django-allauth") (home-page "https://github.com/pennersr/django-allauth")
(synopsis "Set of Django applications addressing authentication") (synopsis "Set of Django applications addressing authentication")
(description (description