[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/06: gnu: python-django-auth-ldap: Update to 4.0.0.
From: |
guix-commits |
Subject: |
06/06: gnu: python-django-auth-ldap: Update to 4.0.0. |
Date: |
Thu, 20 Jan 2022 18:36:15 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 7b62e4d3d3be8aade3203b4b0c7a88d25d128b7f
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Thu Jan 20 23:40:25 2022 +0100
gnu: python-django-auth-ldap: Update to 4.0.0.
* gnu/packages/django.scm (python-django-auth-ldap): Update to 4.0.0.
[arguments]: Rewrite with gexp and remove inputs labels. Do a "manual"
PEP517-style build.
[native-inputs]: Remove PYTHON-MOCK. Change from OPENLDAP to OPENLDAP-2.6.
Add PYTHON-PYPA-BUILD, PYTHON-PIP, PYTHON-SETUPTOOLS-SCM, PYTHON-TOML, and
PYTHON-WHEEL.
---
gnu/packages/django.scm | 44 ++++++++++++++++++++++++++++++--------------
1 file changed, 30 insertions(+), 14 deletions(-)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 410f4c59f4..abec9e454f 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -30,6 +30,7 @@
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
+ #:use-module (guix gexp)
#:use-module (guix build-system python)
#:use-module (guix deprecation)
#:use-module (gnu packages)
@@ -41,6 +42,7 @@
#:use-module (gnu packages geo)
#:use-module (gnu packages openldap)
#:use-module (gnu packages python)
+ #:use-module (gnu packages python-build)
#:use-module (gnu packages python-crypto)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
@@ -1181,28 +1183,42 @@ FileFields during tests.")
(define-public python-django-auth-ldap
(package
(name "python-django-auth-ldap")
- (version "2.4.0")
+ (version "4.0.0")
(source (origin
(method url-fetch)
(uri (pypi-uri "django-auth-ldap" version))
(sha256
(base32
- "0xk6cxiqz5j3q79bd54x64f26alrlc8p7k9wkp2c768w2k1vzz30"))))
+ "0fajn4bk7m1hk0mjz97q7vlfzh7ibzv8f4qn7zhkq26f4kk7jvr7"))))
(build-system python-build-system)
(arguments
- '(#:phases (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((openldap (assoc-ref inputs "openldap")))
- ;; The tests need 'slapd' which is installed to the
- ;; libexec directory of OpenLDAP.
- (setenv "SLAPD" (string-append openldap
"/libexec/slapd"))
- (setenv "SCHEMA"
- (string-append openldap
"/etc/openldap/schema"))
- (invoke "python" "-m" "django" "test"
- "--settings" "tests.settings")))))))
+ (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-mock))
+ (list openldap-2.6 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))
(home-page "https://github.com/django-auth-ldap/django-auth-ldap")
- branch master updated (4c2df34c41 -> 7b62e4d3d3), guix-commits, 2022/01/20
- 03/06: gnu: ungoogled-chromium: Update to 97.0.4692.99., guix-commits, 2022/01/20
- 01/06: gnu: python-django-url-filter: Patch for Django 4.0 compatibility., guix-commits, 2022/01/20
- 02/06: gnu: python-django: Add a native search path for TZDIR., guix-commits, 2022/01/20
- 04/06: gnu: OpenLDAP: Add 2.6.1., guix-commits, 2022/01/20
- 06/06: gnu: python-django-auth-ldap: Update to 4.0.0.,
guix-commits <=
- 05/06: gnu: python-ldap: Update to 3.4.0., guix-commits, 2022/01/20