guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 584e807d9d90c873c6a51318f0cee35387e93112
Author: Nicolas Graves <[email protected]>
AuthorDate: Thu Jan 29 09:55:03 2026 +0100
gnu: sssd: Switch to pyproject.
* gnu/packages/sssd.scm (sssd):
[arguments]<#:imported-modules, #:modules>: Switch to
pyproject-build-system, relocate keyword, remove duplicate keyword.
<#:phases>: Improve phase 'wrap-binaries, use the site-packages
procedure.
Change-Id: I963b2f6932390a80c3b118744eb2c6a1bd39d377
Modified-by: Sharlatan Hellseher <[email protected]>
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/sssd.scm | 24 +++++++++---------------
1 file changed, 9 insertions(+), 15 deletions(-)
diff --git a/gnu/packages/sssd.scm b/gnu/packages/sssd.scm
index e05262fde8..3cf3113da2 100644
--- a/gnu/packages/sssd.scm
+++ b/gnu/packages/sssd.scm
@@ -31,6 +31,7 @@
#:use-module (guix utils)
#:use-module (guix build utils)
#:use-module (guix build-system gnu)
+ #:use-module (guix build-system pyproject)
#:use-module (guix build-system python)
#:use-module (gnu packages)
#:use-module (gnu packages)
@@ -153,8 +154,11 @@ fundamental object types for C.")
(build-system gnu-build-system)
(arguments
(list
- #:imported-modules (source-module-closure
- '((guix build python-build-system)))
+ #:modules '((guix build gnu-build-system)
+ (guix build utils)
+ ((guix build pyproject-build-system) #:prefix py:))
+ #:imported-modules (append %default-gnu-imported-modules
+ %pyproject-build-system-modules)
#:make-flags
#~(list (string-append "CFLAGS=-DRENEWAL_PROG_PATH=\\\""
#$(this-package-input "adcli") "/sbin/adcli"
@@ -189,16 +193,10 @@ fundamental object types for C.")
"/xml/docbook/"
#$(package-version (this-package-native-input
"docbook-xml"))
"/catalog.xml"))
- #:modules '((guix build gnu-build-system)
- (guix build utils)
- ((guix build python-build-system)
- #:select (ensure-no-mtimes-pre-1980)))
- #:imported-modules (append %default-gnu-imported-modules
- %python-build-system-modules)
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'ensure-no-mtimes-pre-1980
- ensure-no-mtimes-pre-1980)
+ py:ensure-no-mtimes-pre-1980)
;; sssd looks in lib/samba, but the Guix package puts things in lib/
;; Patch the path before we autoreconf.
(add-before 'bootstrap 'patch-samba-pkgconfig
@@ -248,7 +246,7 @@ fundamental object types for C.")
(delete-file
(string-append #$output "/lib/ldb/modules/ldb/memberof.la"))))
(add-after 'install 'wrap-binaries
- (lambda _
+ (lambda* (#:key inputs outputs #:allow-other-keys)
(with-directory-excursion #$output
;; Set path to LDB modules for sssd and utilities.
(for-each (lambda (bin)
@@ -260,11 +258,7 @@ fundamental object types for C.")
(for-each (lambda (script)
(wrap-program script
`("GUIX_PYTHONPATH" ":" prefix
- (,(string-append #$output "/lib/python"
- #$(version-major+minor
- (package-version
- (this-package-input
"python")))
- "/site-packages")))))
+ (,(py:site-packages inputs outputs)))))
'("libexec/sssd/sss_analyze"
"sbin/sss_obfuscate"))))))))
(inputs
(list adcli