gnu: python-ldap: Update to 3.4.5 and fix CVE-2025-61911, CVE-2025-61912.

* gnu/packages/openldap.scm (python-ldap): Update to 3.4.5.
[source]: Switch to git-fetch.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Use gexps.
[native-inputs]: Add python-pytest and python-setuptools.

Change-Id: Ib4ec662293d44c4be29fd67adbd592902f7c9e12
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Merges: #4699
This commit is contained in:
Hugo Buddelmeijer 2025-12-06 18:29:03 +01:00 committed by Ludovic Courtès
parent 32e0002303
commit dc6f47a44b
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -51,6 +51,7 @@
#:use-module (gnu packages perl)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
#:use-module (gnu packages python-build)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages rsync)
#:use-module (gnu packages selinux)
@ -65,6 +66,7 @@
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system pyproject)
#:use-module (guix build-system python))
(define-public openldap
@ -191,18 +193,22 @@ an LDAP server.")
(define-public python-ldap
(package
(name "python-ldap")
(version "3.4.3")
(version "3.4.5")
(source
(origin
(method url-fetch)
(uri (pypi-uri "python-ldap" version))
(method git-fetch)
(uri (git-reference
(url "https://github.com/python-ldap/python-ldap")
(commit (string-append name "-" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1872bvrakypb96wrsf932f3xflnbqniiyf8h58x48apgl0cwa9mb"))))
(build-system python-build-system)
"0gbda9lpa2kxm2xy6l4j3k3c69jh7qq77l6nf20aci4wfvj6wm52"))))
(build-system pyproject-build-system)
(arguments
'(#:phases
(modify-phases %standard-phases
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'configure-openldap-locations
(lambda* (#:key inputs #:allow-other-keys)
(let ((slapd (search-input-file inputs "libexec/slapd"))
@ -212,6 +218,8 @@ an LDAP server.")
(setenv "SCHEMA" schema)))))))
(inputs
(list openldap cyrus-sasl mit-krb5))
(native-inputs
(list python-pytest python-setuptools))
(propagated-inputs
(list python-pyasn1 python-pyasn1-modules))
(home-page "https://www.python-ldap.org/")