diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-06 19:44:54 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-10 10:26:15 +0100 |
| commit | c8133d2a57e442b0b78eb0249f7823e5fd0674ca (patch) | |
| tree | 683980fab489e69798ade0366383c5fd2e5731eb | |
| parent | 8dbb0f8143cfa2d42ee33f63dcd6c240e40cb78f (diff) | |
gnu: sugar-river-crossing-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-river-crossing-activity): Run guix
style.
[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: Ie0c7b677df17991974908bed17ac7b9f3880ee30
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/sugar.scm | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm index cc0936efd09..5fe117d3a17 100644 --- a/gnu/packages/sugar.scm +++ b/gnu/packages/sugar.scm | |||
| @@ -1124,19 +1124,20 @@ low power consumption and simple navigation controls.") | |||
| 1124 | (package | 1124 | (package |
| 1125 | (name "sugar-river-crossing-activity") | 1125 | (name "sugar-river-crossing-activity") |
| 1126 | (version (git-version "1" revision commit)) | 1126 | (version (git-version "1" revision commit)) |
| 1127 | (source (origin | 1127 | (source |
| 1128 | (method git-fetch) | 1128 | (origin |
| 1129 | (uri (git-reference | 1129 | (method git-fetch) |
| 1130 | (url "https://github.com/sugarlabs/river-crossing-activity") | 1130 | (uri (git-reference |
| 1131 | (commit commit))) | 1131 | (url "https://github.com/sugarlabs/river-crossing-activity") |
| 1132 | (file-name (git-file-name name version)) | 1132 | (commit commit))) |
| 1133 | (sha256 | 1133 | (file-name (git-file-name name version)) |
| 1134 | (base32 | 1134 | (sha256 |
| 1135 | "0h7c3i288vwz249figw3jwyylwhlh9qlgjhlbs902ldpmib0k237")))) | 1135 | (base32 "0h7c3i288vwz249figw3jwyylwhlh9qlgjhlbs902ldpmib0k237")))) |
| 1136 | (build-system python-build-system) | 1136 | (build-system pyproject-build-system) |
| 1137 | (arguments | 1137 | (arguments |
| 1138 | (list | 1138 | (list |
| 1139 | #:test-target "check" | 1139 | #:test-flags |
| 1140 | #~(list "check") | ||
| 1140 | #:phases | 1141 | #:phases |
| 1141 | #~(modify-phases %standard-phases | 1142 | #~(modify-phases %standard-phases |
| 1142 | (add-after 'unpack 'patch-launcher | 1143 | (add-after 'unpack 'patch-launcher |
| @@ -1144,7 +1145,8 @@ low power consumption and simple navigation controls.") | |||
| 1144 | (substitute* "activity/activity.info" | 1145 | (substitute* "activity/activity.info" |
| 1145 | (("exec = sugar-activity3") | 1146 | (("exec = sugar-activity3") |
| 1146 | (string-append "exec = " | 1147 | (string-append "exec = " |
| 1147 | (search-input-file inputs "/bin/sugar-activity3")))))) | 1148 | (search-input-file inputs |
| 1149 | "/bin/sugar-activity3")))))) | ||
| 1148 | (add-after 'unpack 'inject-load-path | 1150 | (add-after 'unpack 'inject-load-path |
| 1149 | (lambda _ | 1151 | (lambda _ |
| 1150 | (substitute* "activity.py" | 1152 | (substitute* "activity.py" |
| @@ -1158,24 +1160,23 @@ for directory in \"" (getenv "GUIX_PYTHONPATH") "\".split(\":\"): | |||
| 1158 | sys.path.insert(1, directory) | 1160 | sys.path.insert(1, directory) |
| 1159 | import pygame | 1161 | import pygame |
| 1160 | "))))) | 1162 | "))))) |
| 1163 | (delete 'build) | ||
| 1161 | (replace 'install | 1164 | (replace 'install |
| 1162 | (lambda _ | 1165 | (lambda _ |
| 1163 | (setenv "HOME" "/tmp") | 1166 | (setenv "HOME" "/tmp") |
| 1164 | (invoke "python" "setup.py" "install" | 1167 | (invoke "python" "setup.py" "install" |
| 1165 | (string-append "--prefix=" #$output))))))) | 1168 | (string-append "--prefix=" #$output))))))) |
| 1169 | (native-inputs (list python-setuptools-next)) | ||
| 1166 | ;; These libraries are accessed via gobject introspection. | 1170 | ;; These libraries are accessed via gobject introspection. |
| 1167 | (propagated-inputs | 1171 | (propagated-inputs (list gtk+)) |
| 1168 | (list gtk+)) | 1172 | (inputs (list python-pygame sugar-toolkit-gtk3 gettext-minimal)) |
| 1169 | (inputs | ||
| 1170 | (list python-pygame | ||
| 1171 | sugar-toolkit-gtk3 | ||
| 1172 | gettext-minimal)) | ||
| 1173 | (home-page "https://github.com/sugarlabs/river-crossing-activity") | 1173 | (home-page "https://github.com/sugarlabs/river-crossing-activity") |
| 1174 | (synopsis "Puzzle game for Sugar desktop") | 1174 | (synopsis "Puzzle game for Sugar desktop") |
| 1175 | (description "A farmer is to ferry across a river a goat, a cabbage, and | 1175 | (description |
| 1176 | a wolf. The boat allows the farmer to carry only one of the three at a time. | 1176 | "A farmer is to ferry across a river a goat, a cabbage, and a wolf. |
| 1177 | Without supervision, the goat will gobble the cabbage whereas the wolf will | 1177 | The boat allows the farmer to carry only one of the three at a time. Without |
| 1178 | not hesitate to feast on the goat.") | 1178 | supervision, the goat will gobble the cabbage whereas the wolf will not |
| 1179 | hesitate to feast on the goat.") | ||
| 1179 | (license license:gpl3+)))) | 1180 | (license license:gpl3+)))) |
| 1180 | 1181 | ||
| 1181 | (define-public sugar-terminal-activity | 1182 | (define-public sugar-terminal-activity |
