diff options
| author | Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 2025-12-06 18:29:03 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-12-11 16:01:17 +0100 |
| commit | dc6f47a44bb4777b5c7beebf4ce210b7fc80a8bf (patch) | |
| tree | 58be40434fa8e83a8ef1442d8cd351bd1ecbb90d /gnu | |
| parent | 32e000230355c1c49d08aaee8876ccb49c6b69cc (diff) | |
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
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/openldap.scm | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/gnu/packages/openldap.scm b/gnu/packages/openldap.scm index a282f5f1530..185261e69d4 100644 --- a/gnu/packages/openldap.scm +++ b/gnu/packages/openldap.scm @@ -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/") |
