From 0016aea186c5328ee38f3bf3209a10b440f5f805 Mon Sep 17 00:00:00 2001 From: Nicolas Graves Date: Sun, 21 Sep 2025 17:08:14 +0200 Subject: [PATCH] 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 --- 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 8b52b1d57dfe4690fda211c27a1d2dd4185e8f77..6134174f453392cb33ba8aae159f56f1ff566d31 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 . - 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