guix_mirror_bot pushed a commit to branch master
in repository guix.

commit df99ec9e7b2825c1f9a5fb0c44336e0d54dce90e
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Dec 27 11:56:26 2025 +0100

    gnu: python-liblarch: Switch to pyproject.
    
    * gnu/packages/gnome.scm (python-liblarch):
    [build-system]: Switch to pyproject-build-system.
    [arguments]: Refresh them, improve readability and modernize.
    [native-inputs]: Add python-pytest, python-setuptools.
    
    Change-Id: I44f59e9e994aafda365f9a0c7d128000256ffae8
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/gnome.scm | 22 ++++++++++++++--------
 1 file changed, 14 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 19e1cdb733..2fefc1d0a3 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -2745,15 +2745,21 @@ schemas for settings shared by various components of 
the GNOME desktop.")
               (sha256
                (base32
                 "125rmrdbc84lapfh8c77zxnmwas20xdfamqmilhv1smkxn2q4sh3"))))
-    (build-system python-build-system)
+    (build-system pyproject-build-system)
     (arguments
-     `(#:phases (modify-phases %standard-phases
-                  (add-before 'check 'start-xserver
-                    (lambda* (#:key inputs #:allow-other-keys)
-                      (system (format #f "~a/bin/Xvfb :1 &"
-                                      (assoc-ref inputs "xorg-server")))
-                      (setenv "DISPLAY" ":1"))))))
-    (native-inputs (list xorg-server-for-tests))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'check 'start-xserver
+            (lambda* (#:key inputs #:allow-other-keys)
+              (let ((xorg-display ":1"))
+                (system (string-join
+                         (list (search-input-file inputs "/bin/Xvfb")
+                               xorg-display "&")
+                         " "))
+                (setenv "DISPLAY" xorg-display)))))))
+    (native-inputs
+     (list xorg-server-for-tests python-pytest python-setuptools))
     (inputs (list gtk+))
     (propagated-inputs (list python-pygobject))
     (home-page "https://wiki.gnome.org/Projects/liblarch";)

Reply via email to