[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/53: gnu: Add python-ldap.
From: |
Ricardo Wurmus |
Subject: |
07/53: gnu: Add python-ldap. |
Date: |
Thu, 16 Aug 2018 11:04:57 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 8c0b8cce43291b90791ee82407e8a014b0bd2254
Author: Ricardo Wurmus <address@hidden>
Date: Tue Jul 31 14:31:50 2018 +0200
gnu: Add python-ldap.
* gnu/packages/openldap.scm (python-ldap): New variable.
---
gnu/packages/openldap.scm | 46 +++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 43 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm
index d952f41..a331f06 100644
--- a/gnu/packages/openldap.scm
+++ b/gnu/packages/openldap.scm
@@ -22,9 +22,9 @@
(define-module (gnu packages openldap)
#:use-module (gnu packages autotools)
- #:use-module (gnu packages databases)
#:use-module (gnu packages compression)
#:use-module (gnu packages cyrus-sasl)
+ #:use-module (gnu packages databases)
#:use-module (gnu packages gnupg)
#:use-module (gnu packages groff)
#:use-module (gnu packages icu4c)
@@ -33,10 +33,11 @@
#:use-module (gnu packages python)
#:use-module (gnu packages tls)
#:use-module (gnu packages)
- #:use-module ((guix licenses) #:select (openldap2.8 lgpl2.1+))
+ #:use-module ((guix licenses) #:select (openldap2.8 lgpl2.1+ psfl))
#:use-module (guix packages)
#:use-module (guix download)
- #:use-module (guix build-system gnu))
+ #:use-module (guix build-system gnu)
+ #:use-module (guix build-system python))
(define-public openldap
(package
@@ -138,3 +139,42 @@ get from @file{/etc} flat files or NIS. It also provides
a @dfn{Pluggable
Authentication Module} (PAM) to do identity and authentication management with
an LDAP server.")
(license lgpl2.1+)))
+
+(define-public python-ldap
+ (package
+ (name "python-ldap")
+ (version "3.1.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "python-ldap" version))
+ (sha256
+ (base32
+ "1i97nwfnraylyn0myxlf3vciicrf5h6fymrcff9c00k581wmx5s1"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'configure-openldap-locations
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((openldap (assoc-ref inputs "openldap")))
+ (setenv "SLAPD"
+ (string-append openldap
+ "/libexec/slapd"))
+ (setenv "SCHEMA"
+ (string-append openldap
+ "/etc/openldap/schema/")))
+ #t)))))
+ (inputs
+ `(("openldap" ,openldap)
+ ("cyrus-sasl" ,cyrus-sasl)
+ ("mit-krb5" ,mit-krb5)))
+ (propagated-inputs
+ `(("python-pyasn1" ,python-pyasn1)
+ ("python-pyasn1-modules" ,python-pyasn1-modules)))
+ (home-page "https://www.python-ldap.org/")
+ (synopsis "Python modules for implementing LDAP clients")
+ (description
+ "This package provides an object-oriented API to access LDAP directory
+servers from Python programs.")
+ (license psfl)))
- branch master updated (9c33229 -> b64ce4b), Ricardo Wurmus, 2018/08/16
- 04/53: gnu: Add r-basix., Ricardo Wurmus, 2018/08/16
- 06/53: gnu: Add python-argparse-manpage., Ricardo Wurmus, 2018/08/16
- 03/53: gnu: Add r-refgenome., Ricardo Wurmus, 2018/08/16
- 02/53: gnu: Add r-doby., Ricardo Wurmus, 2018/08/16
- 05/53: gnu: Add r-blockfest., Ricardo Wurmus, 2018/08/16
- 01/53: gnu: Add nudoku., Ricardo Wurmus, 2018/08/16
- 09/53: gnu: Add r-hash., Ricardo Wurmus, 2018/08/16
- 07/53: gnu: Add python-ldap.,
Ricardo Wurmus <=
- 08/53: gnu: Add 389-ds-base., Ricardo Wurmus, 2018/08/16
- 21/53: gnu: Add ghc-call-stack-boot., Ricardo Wurmus, 2018/08/16
- 14/53: gnu: ghc-hspec-expectations: Update to 0.8.2., Ricardo Wurmus, 2018/08/16
- 10/53: gnu: hspec-discover: Update to 2.5.5., Ricardo Wurmus, 2018/08/16
- 36/53: gnu: ghc-blaze-html: Allow build with newer HUnit., Ricardo Wurmus, 2018/08/16
- 30/53: gnu: ghc-conduit-extra: Update to 1.3.0., Ricardo Wurmus, 2018/08/16
- 13/53: gnu: ghc-hspec-contrib: Update to 0.5.0., Ricardo Wurmus, 2018/08/16
- 32/53: gnu: ghc-pandoc-types-for-pandoc-1: Loosen version constraints., Ricardo Wurmus, 2018/08/16
- 18/53: gnu: ghc-http-types: Update to 0.12.1., Ricardo Wurmus, 2018/08/16
- 34/53: gnu: ghc-resourcet: Update to 1.2.1., Ricardo Wurmus, 2018/08/16