guix_mirror_bot pushed a commit to branch next-master
in repository guix.

commit e55d512f83928cc1cdf3828b91c76ca8d4a5d35b
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Jan 6 14:10:31 2026 +0100

    gnu: createrepo-c: Switch to pyproject.
    
    * gnu/packages/rpm.scm (createrepo-c):
    [arguments]<#:imported-modules, #:modules, #:phases>: Switch to
    pyproject-build-system.
    
    Change-Id: I54168510e40607007d89de2cb6e4fa8df166eaba
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/rpm.scm | 34 ++++++++++++++++++----------------
 1 file changed, 18 insertions(+), 16 deletions(-)

diff --git a/gnu/packages/rpm.scm b/gnu/packages/rpm.scm
index 3a22bef489..23763726a8 100644
--- a/gnu/packages/rpm.scm
+++ b/gnu/packages/rpm.scm
@@ -24,6 +24,7 @@
   #:use-module (guix packages)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system meson)
+  #:use-module (guix build-system pyproject)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
@@ -153,25 +154,26 @@ information on multiple streams, default data and 
translations).")
     (build-system cmake-build-system)
     (arguments
      (list
-      #:imported-modules `(,@%cmake-build-system-modules
-                           (guix build python-build-system))
+      #:imported-modules (append %cmake-build-system-modules
+                                 %pyproject-build-system-modules)
       #:modules '((guix build cmake-build-system)
-                  ((guix build python-build-system) #:prefix python:)
+                  ((guix build pyproject-build-system) #:prefix py:)
                   (guix build utils))
       #:phases
-      #~(modify-phases %standard-phases
-          (add-after 'unpack 'fix-python-site-prefix
-            (lambda* (#:key inputs outputs #:allow-other-keys)
-              (substitute* "src/python/CMakeLists.txt"
-                (("EXECUTE_PROCESS.*OUTPUT_VARIABLE PYTHON_INSTALL_DIR.*")
-                 (format #f "set (PYTHON_INSTALL_DIR ~a)~%"
-                         (python:site-packages inputs outputs))))))
-          (add-after 'unpack 'fix-bash-completion-prefix
-            (lambda _
-              (substitute* "CMakeLists.txt"
-                (("execute_process.*OUTPUT_VARIABLE BASHCOMP_DIR.*")
-                 (format #f "set (BASHCOMP_DIR ~a\
-/share/bash-completion/completions)~%" #$output))))))))
+      (with-extensions (list (pyproject-guile-json))
+        #~(modify-phases %standard-phases
+            (add-after 'unpack 'fix-python-site-prefix
+              (lambda* (#:key inputs outputs #:allow-other-keys)
+                (substitute* "src/python/CMakeLists.txt"
+                  (("EXECUTE_PROCESS.*OUTPUT_VARIABLE PYTHON_INSTALL_DIR.*")
+                   (format #f "set (PYTHON_INSTALL_DIR ~a)~%"
+                           (py:site-packages inputs outputs))))))
+            (add-after 'unpack 'fix-bash-completion-prefix
+              (lambda _
+                (substitute* "CMakeLists.txt"
+                  (("execute_process.*OUTPUT_VARIABLE BASHCOMP_DIR.*")
+                   (format #f "set (BASHCOMP_DIR ~a\
+/share/bash-completion/completions)~%" #$output)))))))))
     (native-inputs
      (list bash-completion pkg-config python))
     (inputs

Reply via email to