You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

427 lines
18 KiB

gnu: Separate Python core packages from the rest. * gnu/packages/python.scm: Move hundreds of package definitions from here... * gnu/packages/python-xyz.scm: ...to this new module. * gnu/local.mk (GNU_SYSTEM_MODULES): Add it. * gnu/packages/ada.scm, gnu/packages/admin.scm, gnu/packages/android.scm, gnu/packages/audio.scm, gnu/packages/backup.scm, gnu/packages/benchmark.scm, gnu/packages/bioinformatics.scm, gnu/packages/bittorrent.scm, gnu/packages/calendar.scm, gnu/packages/check.scm, gnu/packages/chemistry.scm, gnu/packages/cluster.scm, gnu/packages/compression.scm, gnu/packages/connman.scm, gnu/packages/crypto.scm, gnu/packages/cups.scm, gnu/packages/databases.scm, gnu/packages/dav.scm, gnu/packages/direct-connect.scm, gnu/packages/disk.scm, gnu/packages/django.scm, gnu/packages/dlang.scm, gnu/packages/docker.scm, gnu/packages/ebook.scm, gnu/packages/elf.scm, gnu/packages/emacs.scm, gnu/packages/emulators.scm, gnu/packages/engineering.scm, gnu/packages/enlightenment.scm, gnu/packages/finance.scm, gnu/packages/fltk.scm, gnu/packages/fontutils.scm, gnu/packages/freedesktop.scm, gnu/packages/game-development.scm, gnu/packages/games.scm, gnu/packages/geo.scm, gnu/packages/gl.scm, gnu/packages/glib.scm, gnu/packages/gnome.scm, gnu/packages/gnupg.scm, gnu/packages/gnuzilla.scm, gnu/packages/graph.scm, gnu/packages/graphics.scm, gnu/packages/graphviz.scm, gnu/packages/gtk.scm, gnu/packages/ham-radio.scm, gnu/packages/image-processing.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/jrnl.scm, gnu/packages/julia.scm, gnu/packages/kde-frameworks.scm, gnu/packages/key-mon.scm, gnu/packages/libffi.scm, gnu/packages/libreoffice.scm, gnu/packages/libusb.scm, gnu/packages/lirc.scm, gnu/packages/logging.scm, gnu/packages/machine-learning.scm, gnu/packages/mail.scm, gnu/packages/mate.scm, gnu/packages/maths.scm, gnu/packages/medical.scm, gnu/packages/messaging.scm, gnu/packages/monitoring.scm, gnu/packages/mp3.scm, gnu/packages/mpd.scm, gnu/packages/music.scm, gnu/packages/networking.scm, gnu/packages/nutrition.scm, gnu/packages/openldap.scm, gnu/packages/openstack.scm, gnu/packages/package-management.scm, gnu/packages/password-utils.scm, gnu/packages/patchutils.scm, gnu/packages/pdf.scm, gnu/packages/photo.scm, gnu/packages/polkit.scm, gnu/packages/protobuf.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/qt.scm, gnu/packages/rdf.scm, gnu/packages/ruby.scm, gnu/packages/search.scm, gnu/packages/selinux.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/simulation.scm, gnu/packages/ssh.scm, gnu/packages/statistics.scm, gnu/packages/storage.scm, gnu/packages/sync.scm, gnu/packages/terminals.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/tryton.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/virtualization.scm, gnu/packages/vpn.scm, gnu/packages/web-browsers.scm, gnu/packages/web.scm, gnu/packages/wicd.scm, gnu/packages/xdisorg.scm, gnu/packages/xorg.scm: Update module references.
3 years ago
gnu: Remove unused lambda arguments and prefer separate phases over augmented phases. * gnu/packages/compression.scm (sharutils) [arguments]: Remove unused lambda args. * gnu/packages/gl.scm (mesa) [arguments]: Same * gnu/packages/fltk.scm [arguments]: Same. Substitute const check phase with #:tests? #f. Add pre-configure phase. * gnu/packages/ghostscript.scm (ghostscript) [arguments]: Put makefile patches in separate phase. Put so steps oinseparate phases. * gnu/packages/glib.scm (gobject-introspection) [arguments]: Remove unused lambda args. Put patches in pre-configure phase. * gnu/packages/gnupg.scm (gnupg) [arguments]: Put patch in pre-configure phase. (pius) [arguments]: Delete const #t configure and build phases. (signing-party) [arguments]: Factor patches into post-unpack phase. (paperkey) [arguments]: Remove unused lambda args. Factor out patches into pre-check phase. * gnu/packages/icu4c.scm [arguments]: Change source dir after standard unpack phase. Factor configure patches into pre-configure phase. * gnu/packages/lsof.scm [arguments]: Remove unused lambda args. Remove unnecessary apply. * gnu/packages/lvm.scm (lvm2) [arguments]: Factor out patches into pre-configure phase. * gnu/packages/libtiff.scm [arguments]: Same * gnu/packages/maths.scm (hdf5) [arguments]: Same * gnu/packages/gtk.scm (gtk+-2) [arguments]: Same * gnu/packages/mp3.scm (libmad) [arguments]: Same (id3lib) [arguments]: Same * gnu/packages/python.scm (python-2) [arguments]: Same * gnu/packages/texlive.scm (texlive) [arguments]: Same * gnu/packages/pretty-print.scm (a2ps) [arguments]: Same (trueprint) [arguments]: Same (source-highlight) [arguments]: Same. Remove unused lambda args. * gnu/packages/netpbm.scm [arguments]: Remove unused lambda args. Factor out test patches into pre-check phase. Condense calls to substitute* * gnu/packages/openldap.scm [arguments]: Factor out libtool copy into post-configure phases. [synopsis] Remove package name. * gnu/packages/ssh.scm (openssh) [arguments]: Factor out patches into separate phases. * gnu/packages/tcsh.scm [arguments]: Factor out test patches into pre-check phase. * gnu/packages/version-control.scm (git) [arguments]: Factor out patches into post-configure phase. * gnu/packages/vim.scm [arguments]: Same. [synopsis] Remove package name. * gnu/packages/vpn.scm (openconnect) [arguments]: Put configure flags in #:configure-flags
8 years ago
  1. ;;; GNU Guix --- Functional package management for GNU
  2. ;;; Copyright © 2013, 2014, 2015, 2019 Ludovic Courtès <ludo@gnu.org>
  3. ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
  4. ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
  5. ;;; Copyright © 2017, 2018, 2019 Ricardo Wurmus <rekado@elephly.net>
  6. ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
  7. ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
  8. ;;; Copyright © 2020 Lars-Dominik Braun <ldb@leibniz-psychology.org>
  9. ;;; Copyright © 2020 Efraim Flashner <efraim@flashner.co.il>
  10. ;;;
  11. ;;; This file is part of GNU Guix.
  12. ;;;
  13. ;;; GNU Guix is free software; you can redistribute it and/or modify it
  14. ;;; under the terms of the GNU General Public License as published by
  15. ;;; the Free Software Foundation; either version 3 of the License, or (at
  16. ;;; your option) any later version.
  17. ;;;
  18. ;;; GNU Guix is distributed in the hope that it will be useful, but
  19. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  20. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. ;;; GNU General Public License for more details.
  22. ;;;
  23. ;;; You should have received a copy of the GNU General Public License
  24. ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  25. (define-module (gnu packages openldap)
  26. #:use-module (gnu packages autotools)
  27. #:use-module (gnu packages check)
  28. #:use-module (gnu packages compression)
  29. #:use-module (gnu packages cyrus-sasl)
  30. #:use-module (gnu packages dbm)
  31. #:use-module (gnu packages documentation)
  32. #:use-module (gnu packages gettext)
  33. #:use-module (gnu packages gnupg)
  34. #:use-module (gnu packages groff)
  35. #:use-module (gnu packages icu4c)
  36. #:use-module (gnu packages kerberos)
  37. #:use-module (gnu packages libevent)
  38. #:use-module (gnu packages linux)
  39. #:use-module (gnu packages networking)
  40. #:use-module (gnu packages nss)
  41. #:use-module (gnu packages password-utils)
  42. #:use-module (gnu packages pcre)
  43. #:use-module (gnu packages perl)
  44. #:use-module (gnu packages pkg-config)
  45. #:use-module (gnu packages python)
  46. #:use-module (gnu packages python-xyz)
  47. #:use-module (gnu packages rsync)
  48. #:use-module (gnu packages selinux)
  49. #:use-module (gnu packages time)
  50. #:use-module (gnu packages tls)
  51. #:use-module (gnu packages web)
  52. #:use-module (gnu packages)
  53. #:use-module ((guix licenses) #:select (openldap2.8 lgpl2.1+ gpl3+ psfl expat))
  54. #:use-module (guix packages)
  55. #:use-module (guix utils)
  56. #:use-module (guix download)
  57. #:use-module (guix build-system gnu)
  58. #:use-module (guix build-system python))
  59. (define-public openldap
  60. (package
  61. (name "openldap")
  62. (replacement openldap-2.4.50)
  63. (version "2.4.49")
  64. (source (origin
  65. (method url-fetch)
  66. ;; See <http://www.openldap.org/software/download/> for a list of
  67. ;; mirrors.
  68. (uri (list (string-append
  69. "ftp://mirror.switch.ch/mirror/OpenLDAP/"
  70. "openldap-release/openldap-" version ".tgz")
  71. (string-append
  72. "https://www.openldap.org/software/download/OpenLDAP/"
  73. "openldap-release/openldap-" version ".tgz")
  74. (string-append
  75. "ftp://ftp.dti.ad.jp/pub/net/OpenLDAP/"
  76. "openldap-release/openldap-" version ".tgz")))
  77. (sha256
  78. (base32
  79. "0vp524rsngdcykf6ki7vprsyg7gj8z7hszg8xwxz50219fa1gcg3"))))
  80. (build-system gnu-build-system)
  81. (inputs `(("bdb" ,bdb-5.3)
  82. ("cyrus-sasl" ,cyrus-sasl)
  83. ("gnutls" ,gnutls)
  84. ("libgcrypt" ,libgcrypt)
  85. ("zlib" ,zlib)))
  86. (native-inputs `(("libtool" ,libtool)
  87. ("groff" ,groff)
  88. ("bdb" ,bdb-5.3)))
  89. (arguments
  90. `(#:tests? #f
  91. #:configure-flags
  92. '("--disable-static"
  93. ,@(if (%current-target-system)
  94. '("--with-yielding_select=yes"
  95. "ac_cv_func_memcmp_working=yes")
  96. '()))
  97. ;; Disable install stripping as it breaks cross-compiling.
  98. #:make-flags '("STRIP=")
  99. #:phases
  100. (modify-phases %standard-phases
  101. ,@(if (%current-target-system)
  102. '((add-before 'configure 'fix-cross-gcc
  103. (lambda* (#:key target #:allow-other-keys)
  104. (setenv "CC" (string-append target "-gcc"))
  105. #t)))
  106. '())
  107. (add-after 'install 'patch-sasl-path
  108. ;; Give -L arguments for cyrus-sasl to avoid propagation.
  109. (lambda* (#:key inputs outputs #:allow-other-keys)
  110. (let ((out (assoc-ref outputs "out"))
  111. (krb5 (assoc-ref inputs "mit-krb5"))) ;propagated from cyrus-sasl
  112. ;; The ancient Libtool bundled with OpenLDAP copies the linker flags
  113. ;; from Cyrus-SASL and embeds them into its own .la files. Add an
  114. ;; absolute reference to Kerberos so it does not have to be propagated.
  115. (substitute* (map (lambda (f) (string-append out "/" f))
  116. '("lib/libldap.la" "lib/libldap_r.la"))
  117. (("-lkrb5" lib)
  118. (string-append "-L" krb5 "/lib " lib)))
  119. #t))))))
  120. (synopsis "Implementation of the Lightweight Directory Access Protocol")
  121. (description
  122. "OpenLDAP is a free implementation of the Lightweight Directory Access Protocol.")
  123. (license openldap2.8)
  124. (home-page "https://www.openldap.org/")))
  125. (define openldap-2.4.50
  126. (package
  127. (inherit openldap)
  128. (version "2.4.50")
  129. (source (origin
  130. (method url-fetch)
  131. (uri (string-append "https://www.openldap.org/software/download/"
  132. "OpenLDAP/openldap-release/openldap-" version
  133. ".tgz"))
  134. (sha256
  135. (base32
  136. "1f46nlfwmys110j36sifm7ah8m8f3s10c3vaiikmmigmifapvdaw"))))))
  137. (define-public nss-pam-ldapd
  138. (package
  139. (name "nss-pam-ldapd")
  140. (version "0.9.11")
  141. (source (origin
  142. (method url-fetch)
  143. (uri (string-append "https://arthurdejong.org/nss-pam-ldapd/"
  144. "nss-pam-ldapd-" version ".tar.gz"))
  145. (sha256
  146. (base32
  147. "1dna3r0q6sjhhlkhcp8x2zkslrd4y7701kk6fl5r940sdph1pmyh"))))
  148. (build-system gnu-build-system)
  149. (arguments
  150. `(#:configure-flags
  151. (list (string-append "--with-pam-seclib-dir="
  152. (assoc-ref %outputs "out") "/lib/security/")
  153. ;; nslcd cannot be convinced to look at run-time for its
  154. ;; configuration file at a location that differs from the
  155. ;; configured location.
  156. "--with-ldap-conf-file=/etc/nslcd.conf")
  157. #:phases
  158. (modify-phases %standard-phases
  159. ;; This is necessary because we tell nslcd with configure flags that
  160. ;; it should look for its configuration file at /etc/nslcd.conf. The
  161. ;; build system tries to install a default configuration to that very
  162. ;; location.
  163. (add-after 'unpack 'override-nslcd.conf-install-path
  164. (lambda* (#:key outputs #:allow-other-keys)
  165. (substitute* "Makefile.in"
  166. (("\\$\\(DESTDIR\\)\\$\\(NSLCD_CONF_PATH\\)")
  167. (string-append (assoc-ref outputs "out")
  168. "/etc/nslcd.conf.example")))
  169. #t)))))
  170. (inputs
  171. `(("linux-pam" ,linux-pam)
  172. ("openldap" ,openldap)
  173. ("mit-krb5" ,mit-krb5)
  174. ("python" ,python)))
  175. (home-page "https://arthurdejong.org/nss-pam-ldapd")
  176. (synopsis "NSS and PAM modules for LDAP")
  177. (description "nss-pam-ldapd provides a @dfn{Name Service Switch} (NSS)
  178. module that allows your LDAP server to provide user account, group, host name,
  179. alias, netgroup, and basically any other information that you would normally
  180. get from @file{/etc} flat files or NIS. It also provides a @dfn{Pluggable
  181. Authentication Module} (PAM) to do identity and authentication management with
  182. an LDAP server.")
  183. (license lgpl2.1+)))
  184. (define-public python-ldap
  185. (package
  186. (name "python-ldap")
  187. (version "3.1.0")
  188. (source
  189. (origin
  190. (method url-fetch)
  191. (uri (pypi-uri "python-ldap" version))
  192. (sha256
  193. (base32
  194. "1i97nwfnraylyn0myxlf3vciicrf5h6fymrcff9c00k581wmx5s1"))))
  195. (build-system python-build-system)
  196. (arguments
  197. `(#:phases
  198. (modify-phases %standard-phases
  199. (add-after 'unpack 'configure-openldap-locations
  200. (lambda* (#:key inputs #:allow-other-keys)
  201. (let ((openldap (assoc-ref inputs "openldap")))
  202. (setenv "SLAPD"
  203. (string-append openldap
  204. "/libexec/slapd"))
  205. (setenv "SCHEMA"
  206. (string-append openldap
  207. "/etc/openldap/schema/")))
  208. #t)))))
  209. (inputs
  210. `(("openldap" ,openldap)
  211. ("cyrus-sasl" ,cyrus-sasl)
  212. ("mit-krb5" ,mit-krb5)))
  213. (propagated-inputs
  214. `(("python-pyasn1" ,python-pyasn1)
  215. ("python-pyasn1-modules" ,python-pyasn1-modules)))
  216. (home-page "https://www.python-ldap.org/")
  217. (synopsis "Python modules for implementing LDAP clients")
  218. (description
  219. "This package provides an object-oriented API to access LDAP directory
  220. servers from Python programs.")
  221. (license psfl)))
  222. (define-public 389-ds-base
  223. (package
  224. (name "389-ds-base")
  225. (version "1.4.0.21")
  226. (source (origin
  227. (method url-fetch)
  228. (uri (string-append "https://releases.pagure.org/389-ds-base/"
  229. "389-ds-base-" version ".tar.bz2"))
  230. (sha256
  231. (base32
  232. "1qd1ap5d5nxyiq0d19czfwc3h7iwl9lmr5sy7d7xmpr2by59aysr"))))
  233. (build-system gnu-build-system)
  234. (arguments
  235. `(#:modules ((srfi srfi-1)
  236. (guix build gnu-build-system)
  237. ((guix build python-build-system)
  238. #:select (python-version))
  239. (guix build utils))
  240. #:imported-modules ((guix build python-build-system)
  241. ,@%gnu-build-system-modules)
  242. #:configure-flags
  243. (list (string-append "--with-db="
  244. (assoc-ref %build-inputs "bdb"))
  245. (string-append "--with-sasl="
  246. (assoc-ref %build-inputs "cyrus-sasl"))
  247. (string-append "--with-netsnmp="
  248. (assoc-ref %build-inputs "net-snmp"))
  249. (string-append "--with-pcre="
  250. (assoc-ref %build-inputs "pcre"))
  251. (string-append "--with-selinux="
  252. (assoc-ref %build-inputs "libselinux"))
  253. "--localstatedir=/var"
  254. "--with-instconfigdir=/etc/dirsrv"
  255. ;; The Perl scripts are being removed in the 1.4.0 release.
  256. ;; Building them would require packaging of the outdated Mozilla
  257. ;; LDAP SDK (instead of OpenLDAP) and PerLDAP.
  258. "--disable-perl")
  259. #:phases
  260. (modify-phases %standard-phases
  261. (add-after 'unpack 'fix-references
  262. (lambda _
  263. (substitute* "include/ldaputil/certmap.h"
  264. (("nss3/cert.h") "nss/cert.h"))
  265. (substitute* "src/lib389/lib389/nss_ssl.py"
  266. (("'/usr/bin/certutil'")
  267. (string-append "'" (which "certutil") "'"))
  268. (("'/usr/bin/c_rehash'")
  269. (string-append "'" (which "perl") "', '" (which "c_rehash") "'")))
  270. #t))
  271. (add-after 'unpack 'overwrite-default-locations
  272. (lambda* (#:key outputs #:allow-other-keys)
  273. (let ((out (assoc-ref outputs "out")))
  274. (substitute* "src/lib389/lib389/paths.py"
  275. (("/usr/share/dirsrv/inf/defaults.inf")
  276. (string-append out "/share/dirsrv/inf/defaults.inf")))
  277. ;; This directory can only be specified relative to sysconfdir. This
  278. ;; is used to determine where to look for installed directory
  279. ;; servers, so in the absence of a search path it needs to be global.
  280. (substitute* "ldap/admin/src/defaults.inf.in"
  281. (("^initconfig_dir =.*")
  282. "initconfig_dir = /etc/dirsrv/registry\n"))
  283. ;; This is used to determine where to write certificate files
  284. ;; when installing new directory server instances.
  285. (substitute* '("src/lib389/lib389/instance/setup.py"
  286. "src/lib389/lib389/instance/remove.py")
  287. (("etc_dirsrv_path = .*")
  288. "etc_dirsrv_path = '/etc/dirsrv/'\n"))
  289. #t)))
  290. (add-after 'unpack 'fix-install-location-of-python-tools
  291. (lambda* (#:key inputs outputs #:allow-other-keys)
  292. (let* ((out (assoc-ref outputs "out"))
  293. (pythondir (string-append
  294. out "/lib/python"
  295. (python-version (assoc-ref inputs "python"))
  296. "/site-packages/")))
  297. ;; Install directory must be on PYTHONPATH.
  298. (setenv "PYTHONPATH"
  299. (string-append (getenv "PYTHONPATH")
  300. ":" pythondir))
  301. ;; Install directory must exist.
  302. (mkdir-p pythondir)
  303. (substitute* "src/lib389/setup.py"
  304. (("/usr") out))
  305. (substitute* "Makefile.am"
  306. (("setup.py install --skip-build" m)
  307. (string-append m " --prefix=" out
  308. " --root=/ --single-version-externally-managed"))))
  309. #t))
  310. (add-after 'build 'build-python-tools
  311. (lambda* (#:key make-flags #:allow-other-keys)
  312. ;; Set DETERMINISTIC_BUILD to override the embedded mtime in pyc
  313. ;; files.
  314. (setenv "DETERMINISTIC_BUILD" "1")
  315. ;; Use deterministic hashes for strings, bytes, and datetime
  316. ;; objects.
  317. (setenv "PYTHONHASHSEED" "0")
  318. (apply invoke "make" "lib389" make-flags)
  319. #t))
  320. (add-after 'install 'install-python-tools
  321. (lambda* (#:key make-flags #:allow-other-keys)
  322. (apply invoke "make" "lib389-install" make-flags)
  323. #t))
  324. (add-after 'install-python-tools 'wrap-python-tools
  325. (lambda* (#:key outputs #:allow-other-keys)
  326. (let* ((out (assoc-ref outputs "out"))
  327. (path (getenv "PYTHONPATH")))
  328. (for-each (lambda (file)
  329. (wrap-program (string-append out file)
  330. `("PYTHONPATH" ":" prefix (,path))))
  331. '("/sbin/dsconf"
  332. "/sbin/dscreate"
  333. "/sbin/dsctl"
  334. "/sbin/dsidm"
  335. "/bin/ds-logpipe.py"
  336. "/bin/ds-replcheck"
  337. "/bin/readnsstate")))
  338. #t)))))
  339. (inputs
  340. `(("bdb" ,bdb)
  341. ("cracklib" ,cracklib)
  342. ("cyrus-sasl" ,cyrus-sasl)
  343. ("gnutls" ,gnutls)
  344. ("httpd" ,httpd)
  345. ("icu4c" ,icu4c)
  346. ("libevent" ,libevent)
  347. ("libselinux" ,libselinux)
  348. ("linux-pam" ,linux-pam)
  349. ("mit-krb5" ,mit-krb5)
  350. ("net-snmp" ,net-snmp)
  351. ("nspr" ,nspr)
  352. ("nss" ,nss)
  353. ("nss:bin" ,nss "bin") ; for certutil
  354. ("openldap" ,openldap)
  355. ("openssl" ,openssl) ; #included by net-snmp
  356. ("pcre" ,pcre)
  357. ("perl" ,perl)
  358. ("python" ,python)
  359. ("python-pyasn1" ,python-pyasn1)
  360. ("python-pyasn1-modules" ,python-pyasn1-modules)
  361. ("python-pytest" ,python-pytest)
  362. ("python-dateutil" ,python-dateutil)
  363. ("python-six" ,python-six)
  364. ("python-argcomplete" ,python-argcomplete)
  365. ("python-argparse-manpage" ,python-argparse-manpage)
  366. ("python-ldap" ,python-ldap)))
  367. (native-inputs
  368. `(("autoconf" ,autoconf)
  369. ("automake" ,automake)
  370. ("doxygen" ,doxygen)
  371. ("gettext" ,gettext-minimal)
  372. ("libtool" ,libtool)
  373. ("rsync" ,rsync)
  374. ("pkg-config" ,pkg-config)))
  375. (home-page "https://directory.fedoraproject.org")
  376. (synopsis "Enterprise-class LDAP server")
  377. (description "389ds is an enterprise-class LDAP server. It is hardened by
  378. real-world use, is full-featured, and supports multi-master replication.
  379. Other features include:
  380. @enumerate
  381. @item Online, zero downtime, LDAP-based update of schema, configuration, and
  382. management including @dfn{Access Control Information} (ACIs);
  383. @item Asynchronous Multi-Master Replication, to provide fault tolerance and
  384. high write performance;
  385. @item Extensive documentation;
  386. @item Secure authentication and transport (TLS, and SASL);
  387. @item LDAPv3 compliant server.
  388. @end enumerate\n")
  389. ;; GPLv3+ with OpenSSL linking exception.
  390. (license gpl3+)))
  391. (define-public python-bonsai
  392. (package
  393. (name "python-bonsai")
  394. (version "1.2.0")
  395. (source
  396. (origin
  397. (method url-fetch)
  398. (uri (pypi-uri "bonsai" version))
  399. (sha256
  400. (base32
  401. "013bl6h1m3f7vg1lk89d4vi28wbf31zdcs4f9g8css7ngx63v6px"))))
  402. (build-system python-build-system)
  403. (inputs
  404. `(("mit-krb5" ,mit-krb5)
  405. ("cyrus-sasl" ,cyrus-sasl)
  406. ("openldap" ,openldap)))
  407. ;; disabling tests, since they require docker and extensive setup
  408. (arguments `(#:tests? #f))
  409. (home-page "https://github.com/noirello/bonsai")
  410. (synopsis "Access LDAP directory servers from Python")
  411. (description
  412. "This is a module for handling LDAP operations in Python. LDAP entries
  413. are mapped to a special Python case-insensitive dictionary, tracking the
  414. changes of the dictionary to modify the entry on the server easily.")
  415. (license expat)))