guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 0604cc86c7e7f096d3cc5e94394ff9610c3d3681
Author: Nicolas Graves <[email protected]>
AuthorDate: Wed Jan 28 08:58:25 2026 +0100

    gnu: system-config-printer: Switch to pyproject.
    
    * gnu/packages/gnome.scm (system-config-printer):
    [arguments]<#:imported-modules, #:modules>: Switch to
    pyproject-build-system.
    <#:phases>{add-install-to-pythonpath, wrap-for-python}: Likewise.
    {wrap}: Improve style.
    
    Change-Id: Ie248069593758a7ab9c51146751d094480574092
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/gnome.scm | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index efe6eb8fc6..b46763af66 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -2944,8 +2944,8 @@ guidelines.")
     (build-system glib-or-gtk-build-system)
     (arguments
      (list
-      #:imported-modules `((guix build python-build-system)
-                           ,@%glib-or-gtk-build-system-modules)
+      #:imported-modules (append %glib-or-gtk-build-system-modules
+                                 %pyproject-build-system-modules)
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'patch-build-files
@@ -2970,19 +2970,18 @@ guidelines.")
                                   '("config.guess" "config.sub")))))
                  #~())
           (add-after 'install 'add-install-to-pythonpath
-            (@@ (guix build python-build-system) add-install-to-pythonpath))
+            py:add-install-to-pythonpath)
           (add-after 'add-install-to-pythonpath 'wrap-for-python
-            (@@ (guix build python-build-system) wrap))
+            py:wrap)
           (add-after 'install 'wrap
-            (lambda* (#:key outputs #:allow-other-keys)
-              (let ((out               (assoc-ref outputs "out"))
-                    (gi-typelib-path   (getenv "GI_TYPELIB_PATH")))
+            (lambda _
+              (let ((gi-typelib-path   (getenv "GI_TYPELIB_PATH")))
                 (for-each
                  (lambda (program)
                    (wrap-program program
                      `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
                  (map (lambda (name)
-                        (string-append out "/bin/" name))
+                        (string-append #$output "/bin/" name))
                       '("system-config-printer"
                         "system-config-printer-applet"
                         "install-printerdriver"

Reply via email to