[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
43/57: gnu: Add python-django-auth-ldap.
From: |
guix-commits |
Subject: |
43/57: gnu: Add python-django-auth-ldap. |
Date: |
Tue, 22 Sep 2020 12:43:41 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 44272f2d7bdd7f50dbc160a1cf50010e6f620d25
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Sep 1 15:13:50 2020 +0200
gnu: Add python-django-auth-ldap.
* gnu/packages/django.scm (python-django-auth-ldap): New public variable.
---
gnu/packages/django.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/django.scm b/gnu/packages/django.scm
index 943958f..d19395a 100644
--- a/gnu/packages/django.scm
+++ b/gnu/packages/django.scm
@@ -34,6 +34,7 @@
#:use-module (gnu packages databases)
#:use-module (gnu packages check)
#:use-module (gnu packages geo)
+ #:use-module (gnu packages openldap)
#:use-module (gnu packages python)
#:use-module (gnu packages python-compression)
#:use-module (gnu packages python-crypto)
@@ -1169,3 +1170,38 @@ template tag.")
"This project provides tools to help reduce the side effects of using
FileFields during tests.")
(license license:expat)))
+
+(define-public python-django-auth-ldap
+ (package
+ (name "python-django-auth-ldap")
+ (version "2.2.0")
+ (source (origin
+ (method url-fetch)
+ (uri (pypi-uri "django-auth-ldap" version))
+ (sha256
+ (base32
+ "1gq49l5lv6ar6yf73c8pix8n7md4109yq31s5jfk64w6n1rigbqi"))))
+ (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")))))))
+ (native-inputs
+ `(("openldap" ,openldap)
+ ("python-mock" ,python-mock)))
+ (propagated-inputs
+ `(("python-django" ,python-django)
+ ("python-ldap" ,python-ldap)))
+ (home-page "https://github.com/django-auth-ldap/django-auth-ldap")
+ (synopsis "Django LDAP authentication backend")
+ (description
+ "This packages provides a LDAP authentication backend for Django.")
+ (license license:bsd-2)))
- 31/57: gnu: Add python-croniter., (continued)
- 31/57: gnu: Add python-croniter., guix-commits, 2020/09/22
- 29/57: gnu: python-redis: Update to 3.5.3., guix-commits, 2020/09/22
- 25/57: gnu: python-django-bulk-update: Update to 2.2.0., guix-commits, 2020/09/22
- 27/57: gnu: python-django-contrib-comments: Update to 1.9.2., guix-commits, 2020/09/22
- 26/57: gnu: python-django-contact-form: Update to 1.8.1., guix-commits, 2020/09/22
- 40/57: gnu: Remove python2 versions of Django packages., guix-commits, 2020/09/22
- 33/57: gnu: python-django-rq: Update to 2.3.2., guix-commits, 2020/09/22
- 42/57: gnu: python-ldap: Update to 3.3.1., guix-commits, 2020/09/22
- 46/57: gnu: Add python-sqlalchemy-mock., guix-commits, 2020/09/22
- 44/57: gnu: Add python-django-logging-json., guix-commits, 2020/09/22
- 43/57: gnu: Add python-django-auth-ldap.,
guix-commits <=
- 55/57: gnu: python-mysqlclient: Update to 2.0.1., guix-commits, 2020/09/22
- 51/57: gnu: Django packages no longer propagate Django., guix-commits, 2020/09/22
- 52/57: gnu: python2-graphite-web: Update to 1.1.7., guix-commits, 2020/09/22
- 48/57: gnu: Add python-django-debug-toolbar-alchemy., guix-commits, 2020/09/22
- 54/57: gnu: python-mysqlclient: Remove unused inputs., guix-commits, 2020/09/22