[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#43354] [PATCH 38/55] gnu: Add python-django-auth-ldap.
From: |
Marius Bakke |
Subject: |
[bug#43354] [PATCH 38/55] gnu: Add python-django-auth-ldap. |
Date: |
Sat, 12 Sep 2020 16:28:54 +0200 |
* 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 62e6263270..6f69a17130 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)
@@ -1351,3 +1352,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)))
--
2.28.0
- [bug#43354] [PATCH 32/55] gnu: python-django-sortedm2m: Update to 3.0.2., (continued)
- [bug#43354] [PATCH 32/55] gnu: python-django-sortedm2m: Update to 3.0.2., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 30/55] gnu: python-django-rq: Update to 2.3.2., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 33/55] gnu: python-django-appconf: Update to 1.0.4., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 35/55] gnu: python-django-sekizai: Update to 2.0.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 34/55] gnu: python-django-statici18n: Update to 1.9.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 36/55] gnu: python-django-override-storage: Update to 0.3.0., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 41/55] gnu: Add python-sqlalchemy-mock., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 37/55] gnu: python-ldap: Update to 3.3.1., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 42/55] gnu: Add python-jsonplus., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 44/55] gnu: Add python-django-url-filter., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 38/55] gnu: Add python-django-auth-ldap.,
Marius Bakke <=
- [bug#43354] [PATCH 39/55] gnu: Add python-django-logging-json., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 40/55] gnu: Add python-django-netfields., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 43/55] gnu: Add python-django-debug-toolbar-alchemy., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 45/55] gnu: Remove pootle., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 46/55] gnu: Remove python2-django-mailman3., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 48/55] gnu: Remove python2 versions of Django packages., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 47/55] gnu: python2-graphite-web: Update to 1.1.7., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 49/55] gnu: Deprecate python-django-jsonfield., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 52/55] gnu: python-mysqlclient: Remove unused inputs., Marius Bakke, 2020/09/12
- [bug#43354] [PATCH 53/55] gnu: python-mysqlclient: Update to 2.0.1., Marius Bakke, 2020/09/12