guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 8d5e2bb8c621476917baad65d34dd7156b7b5f6f
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Sep 21 17:08:14 2025 +0200
gnu: python-django-auth-ldap: Update to 4.8.0.
* gnu/packages/django.scm (python-django-auth-ldap): Update to 4.8.0.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Remove 'build and 'install phase replacements.
[native-inputs]: Remove python-wheel, python-setuptools-scm,
python-toml, python-pypa-build, python-pip.
Change-Id: Ife8eb1b63b458ca29f2d69027b86855e1cb8458d
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/django.scm | 62 ++++++++++++++++++++-----------------------------
1 file changed, 25 insertions(+), 37 deletions(-)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 8b52b1d57d..6134174f45 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -1753,44 +1753,32 @@ backends in a single library.")
(define-public python-django-auth-ldap
(package
(name "python-django-auth-ldap")
- (version "4.1.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "django-auth-ldap" version))
- (sha256
- (base32
- "0jd9jms9qpa92fk5n7gqcxjk3zs6ay79r73ann7cw1vqn79lkxvp"))))
- (build-system python-build-system)
+ (version "4.8.0")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/django-auth-ldap/django-auth-ldap")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "11mgxj05ra1yh2z9knzvcayd3zwqgl39gna0gm0xp290cyw5mnnb"))))
+ (build-system pyproject-build-system)
(arguments
- (list #:phases
- #~(modify-phases %standard-phases
- (replace 'build
- (lambda _
- ;; Set file modification times to the early 80's because
- ;; the Zip format does not support earlier timestamps.
- (setenv "SOURCE_DATE_EPOCH"
- (number->string (* 10 366 24 60 60)))
- (invoke "python" "-m" "build" "--wheel"
- "--no-isolation" ".")))
- (replace 'check
- (lambda* (#:key inputs #:allow-other-keys)
- (setenv "SLAPD" (search-input-file inputs "/libexec/slapd"))
- (setenv "SCHEMA"
- (search-input-directory inputs
"etc/openldap/schema"))
- (invoke "python" "-m" "django" "test"
- "--settings" "tests.settings")))
- (replace 'install
- (lambda _
- (let ((whl (car (find-files "dist" "\\.whl$"))))
- (invoke "pip" "--no-cache-dir" "--no-input"
- "install" "--no-deps" "--prefix" #$output
whl)))))))
- (native-inputs
- (list openldap python-wheel python-setuptools-scm python-toml
-
- ;; These can be removed after <https://bugs.gnu.org/46848>.
- python-pypa-build python-pip))
- (propagated-inputs
- (list python-django python-ldap))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "SLAPD"
+ (search-input-file inputs "/libexec/slapd"))
+ (setenv "SCHEMA"
+ (search-input-directory inputs "etc/openldap/schema"))
+ (invoke "python"
+ "-m" "django" "test"
+ "--settings" "tests.settings"))))))
+ (native-inputs (list openldap python-setuptools))
+ (propagated-inputs (list python-django python-ldap))
(home-page "https://github.com/django-auth-ldap/django-auth-ldap")
(synopsis "Django LDAP authentication backend")
(description