diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-06 19:38:41 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-10 10:26:14 +0100 |
| commit | 779f9b2078b0a25ede5ff11c6d41faba04ab2065 (patch) | |
| tree | 42aa8c1297ea0ca623224b0789f7f796187c8cef /gnu/packages/sugar.scm | |
| parent | bc0de8ca12b70d6ea6d4a4addc928efa66261acd (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/sugar.scm')
| -rw-r--r-- | gnu/packages/sugar.scm | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm index 9b1cfd09404..4caf887617d 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.") | |||
| 913 | (package | 913 | (package |
| 914 | (name "sugar-maze-activity") | 914 | (name "sugar-maze-activity") |
| 915 | (version "32") | 915 | (version "32") |
| 916 | (source (origin | 916 | (source |
| 917 | (method git-fetch) | 917 | (origin |
| 918 | (uri (git-reference | 918 | (method git-fetch) |
| 919 | (url "https://github.com/sugarlabs/maze-activity") | 919 | (uri (git-reference |
| 920 | (commit (string-append "v" version)))) | 920 | (url "https://github.com/sugarlabs/maze-activity") |
| 921 | (file-name (git-file-name name version)) | 921 | (commit (string-append "v" version)))) |
| 922 | (sha256 | 922 | (file-name (git-file-name name version)) |
| 923 | (base32 | 923 | (sha256 |
| 924 | "0506mwxy3agyxlilb5v3pn29pg45lzaxm8rhj9azm58irs3wdmnq")))) | 924 | (base32 "0506mwxy3agyxlilb5v3pn29pg45lzaxm8rhj9azm58irs3wdmnq")))) |
| 925 | (build-system python-build-system) | 925 | (build-system pyproject-build-system) |
| 926 | (arguments | 926 | (arguments |
| 927 | (list | 927 | (list |
| 928 | #:test-target "check" | 928 | #:test-flags |
| 929 | #~(list "check") | ||
| 929 | #:phases | 930 | #:phases |
| 930 | #~(modify-phases %standard-phases | 931 | #~(modify-phases %standard-phases |
| 931 | (add-after 'unpack 'patch-launcher | 932 | (add-after 'unpack 'patch-launcher |
| @@ -933,18 +934,18 @@ looking for why an activity or Sugar is not working properly.") | |||
| 933 | (substitute* "activity/activity.info" | 934 | (substitute* "activity/activity.info" |
| 934 | (("exec = sugar-activity3") | 935 | (("exec = sugar-activity3") |
| 935 | (string-append "exec = " | 936 | (string-append "exec = " |
| 936 | (search-input-file inputs "/bin/sugar-activity3")))))) | 937 | (search-input-file inputs |
| 938 | "/bin/sugar-activity3")))))) | ||
| 939 | (delete 'build) | ||
| 937 | (replace 'install | 940 | (replace 'install |
| 938 | (lambda _ | 941 | (lambda _ |
| 939 | (setenv "HOME" "/tmp") | 942 | (setenv "HOME" "/tmp") |
| 940 | (invoke "python" "setup.py" "install" | 943 | (invoke "python" "setup.py" "install" |
| 941 | (string-append "--prefix=" #$output))))))) | 944 | (string-append "--prefix=" #$output))))))) |
| 945 | (native-inputs (list python-setuptools-next)) | ||
| 942 | ;; All these libraries are accessed via gobject introspection. | 946 | ;; All these libraries are accessed via gobject introspection. |
| 943 | (propagated-inputs | 947 | (propagated-inputs (list gtk+ telepathy-glib)) |
| 944 | (list gtk+ | 948 | (inputs (list sugar-toolkit-gtk3 gettext-minimal)) |
| 945 | telepathy-glib)) | ||
| 946 | (inputs | ||
| 947 | (list sugar-toolkit-gtk3 gettext-minimal)) | ||
| 948 | (home-page "https://github.com/sugarlabs/maze-activity") | 949 | (home-page "https://github.com/sugarlabs/maze-activity") |
| 949 | (synopsis "Simple maze game for the Sugar learning environment") | 950 | (synopsis "Simple maze game for the Sugar learning environment") |
| 950 | (description "Try to make your way through an increasingly difficult path, | 951 | (description "Try to make your way through an increasingly difficult path, |
