guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 779f9b2078b0a25ede5ff11c6d41faba04ab2065
Author: Nicolas Graves <[email protected]>
AuthorDate: Sat Sep 6 19:38:41 2025 +0200

    gnu: sugar-maze-activity: Switch to pyproject.
    
    * gnu/packages/sugar.scm (sugar-maze-activity):
    [build-system]: Switch to pyproject-build-system.
    [arguments]: Replace <#:test-target> with <#:test-flags>.
    <#:phases>: Run guix style.  Delete 'build phase.
    [native-inputs]: Add python-setuptools-next.
    
    Change-Id: Ie2fbfd5b7c49e726a35a066340a389ea2089a0e5
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/sugar.scm | 35 ++++++++++++++++++-----------------
 1 file changed, 18 insertions(+), 17 deletions(-)

diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index 9b1cfd0940..4caf887617 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -913,19 +913,20 @@ looking for why an activity or Sugar is not working 
properly.")
   (package
     (name "sugar-maze-activity")
     (version "32")
-    (source (origin
-              (method git-fetch)
-              (uri (git-reference
-                    (url "https://github.com/sugarlabs/maze-activity";)
-                    (commit (string-append "v" version))))
-              (file-name (git-file-name name version))
-              (sha256
-               (base32
-                "0506mwxy3agyxlilb5v3pn29pg45lzaxm8rhj9azm58irs3wdmnq"))))
-    (build-system python-build-system)
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/sugarlabs/maze-activity";)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0506mwxy3agyxlilb5v3pn29pg45lzaxm8rhj9azm58irs3wdmnq"))))
+    (build-system pyproject-build-system)
     (arguments
      (list
-      #:test-target "check"
+      #:test-flags
+      #~(list "check")
       #:phases
       #~(modify-phases %standard-phases
           (add-after 'unpack 'patch-launcher
@@ -933,18 +934,18 @@ looking for why an activity or Sugar is not working 
properly.")
               (substitute* "activity/activity.info"
                 (("exec = sugar-activity3")
                  (string-append "exec = "
-                                (search-input-file inputs 
"/bin/sugar-activity3"))))))
+                                (search-input-file inputs
+                                                   "/bin/sugar-activity3"))))))
+          (delete 'build)
           (replace 'install
             (lambda _
               (setenv "HOME" "/tmp")
               (invoke "python" "setup.py" "install"
                       (string-append "--prefix=" #$output)))))))
+    (native-inputs (list python-setuptools-next))
     ;; All these libraries are accessed via gobject introspection.
-    (propagated-inputs
-     (list gtk+
-           telepathy-glib))
-    (inputs
-     (list sugar-toolkit-gtk3 gettext-minimal))
+    (propagated-inputs (list gtk+ telepathy-glib))
+    (inputs (list sugar-toolkit-gtk3 gettext-minimal))
     (home-page "https://github.com/sugarlabs/maze-activity";)
     (synopsis "Simple maze game for the Sugar learning environment")
     (description "Try to make your way through an increasingly difficult path,

Reply via email to