diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-06 19:49:34 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-10 10:26:15 +0100 |
| commit | 44174652eb1fe858688bfc30b43d8328e84ce841 (patch) | |
| tree | c475a8352aba46536f0140a42db362e9f8f18710 /gnu | |
| parent | ac99151705fc27eb4833600c603c922dde8ce6ce (diff) | |
gnu: sugar-turtleart-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-turtleart-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: I456a7d909586289382ea90c9f771d4314fc81599
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/sugar.scm | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm index 615daeaaea2..a714218670f 100644 --- a/gnu/packages/sugar.scm +++ b/gnu/packages/sugar.scm | |||
| @@ -1230,19 +1230,20 @@ a Command-Line Interface (CLI) to the system.") | |||
| 1230 | (package | 1230 | (package |
| 1231 | (name "sugar-turtleart-activity") | 1231 | (name "sugar-turtleart-activity") |
| 1232 | (version (git-version "202" revision commit)) | 1232 | (version (git-version "202" revision commit)) |
| 1233 | (source (origin | 1233 | (source |
| 1234 | (method git-fetch) | 1234 | (origin |
| 1235 | (uri (git-reference | 1235 | (method git-fetch) |
| 1236 | (url "https://github.com/sugarlabs/turtleart-activity") | 1236 | (uri (git-reference |
| 1237 | (commit commit))) | 1237 | (url "https://github.com/sugarlabs/turtleart-activity") |
| 1238 | (file-name (git-file-name name version)) | 1238 | (commit commit))) |
| 1239 | (sha256 | 1239 | (file-name (git-file-name name version)) |
| 1240 | (base32 | 1240 | (sha256 |
| 1241 | "11agqyahjhxb7bakzix63lazcbin0jfiypqx0sm2i85bsl30fp7y")))) | 1241 | (base32 "11agqyahjhxb7bakzix63lazcbin0jfiypqx0sm2i85bsl30fp7y")))) |
| 1242 | (build-system python-build-system) | 1242 | (build-system pyproject-build-system) |
| 1243 | (arguments | 1243 | (arguments |
| 1244 | (list | 1244 | (list |
| 1245 | #:test-target "check" | 1245 | #:test-flags |
| 1246 | #~(list "check") | ||
| 1246 | #:phases | 1247 | #:phases |
| 1247 | #~(modify-phases %standard-phases | 1248 | #~(modify-phases %standard-phases |
| 1248 | (add-after 'unpack 'patch-launcher | 1249 | (add-after 'unpack 'patch-launcher |
| @@ -1250,7 +1251,8 @@ a Command-Line Interface (CLI) to the system.") | |||
| 1250 | (substitute* "activity/activity.info" | 1251 | (substitute* "activity/activity.info" |
| 1251 | (("exec = sugar-activity3") | 1252 | (("exec = sugar-activity3") |
| 1252 | (string-append "exec = " | 1253 | (string-append "exec = " |
| 1253 | (search-input-file inputs "/bin/sugar-activity3")))))) | 1254 | (search-input-file inputs |
| 1255 | "/bin/sugar-activity3")))))) | ||
| 1254 | (add-after 'unpack 'patch-locations | 1256 | (add-after 'unpack 'patch-locations |
| 1255 | (lambda _ | 1257 | (lambda _ |
| 1256 | (substitute* "setup.py" | 1258 | (substitute* "setup.py" |
| @@ -1266,11 +1268,13 @@ a Command-Line Interface (CLI) to the system.") | |||
| 1266 | "pysamples/speak.py" | 1268 | "pysamples/speak.py" |
| 1267 | "TurtleArt/tacollaboration.py") | 1269 | "TurtleArt/tacollaboration.py") |
| 1268 | (("'espeak") | 1270 | (("'espeak") |
| 1269 | (string-append "'" (search-input-file inputs "/bin/espeak")))) | 1271 | (string-append "'" |
| 1272 | (search-input-file inputs "/bin/espeak")))) | ||
| 1270 | (substitute* '("pysamples/csound.py" | 1273 | (substitute* '("pysamples/csound.py" |
| 1271 | "plugins/turtle_blocks_extras/turtle_blocks_extras.py") | 1274 | "plugins/turtle_blocks_extras/turtle_blocks_extras.py") |
| 1272 | (("'csound '") | 1275 | (("'csound '") |
| 1273 | (string-append "'" (search-input-file inputs "/bin/csound") | 1276 | (string-append "'" |
| 1277 | (search-input-file inputs "/bin/csound") | ||
| 1274 | " '"))) | 1278 | " '"))) |
| 1275 | (substitute* '("plugins/turtle_blocks_extras/turtle_blocks_extras.py" | 1279 | (substitute* '("plugins/turtle_blocks_extras/turtle_blocks_extras.py" |
| 1276 | "pysamples/speak.py" | 1280 | "pysamples/speak.py" |
| @@ -1281,12 +1285,15 @@ a Command-Line Interface (CLI) to the system.") | |||
| 1281 | (substitute* "pysamples/sinewave.py" | 1285 | (substitute* "pysamples/sinewave.py" |
| 1282 | (("'speaker-test") | 1286 | (("'speaker-test") |
| 1283 | (string-append "'" | 1287 | (string-append "'" |
| 1284 | (search-input-file inputs "/bin/speaker-test")))))) | 1288 | (search-input-file inputs |
| 1289 | "/bin/speaker-test")))))) | ||
| 1290 | (delete 'build) | ||
| 1285 | (replace 'install | 1291 | (replace 'install |
| 1286 | (lambda _ | 1292 | (lambda _ |
| 1287 | (setenv "HOME" "/tmp") | 1293 | (setenv "HOME" "/tmp") |
| 1288 | (invoke "python" "setup.py" "install" | 1294 | (invoke "python" "setup.py" "install" |
| 1289 | (string-append "--prefix=" #$output))))))) | 1295 | (string-append "--prefix=" #$output))))))) |
| 1296 | (native-inputs (list python-setuptools-next)) | ||
| 1290 | ;; All these libraries are accessed via gobject introspection. | 1297 | ;; All these libraries are accessed via gobject introspection. |
| 1291 | (propagated-inputs | 1298 | (propagated-inputs |
| 1292 | (list gstreamer | 1299 | (list gstreamer |
| @@ -1302,12 +1309,13 @@ a Command-Line Interface (CLI) to the system.") | |||
| 1302 | sugar-toolkit-gtk3)) | 1309 | sugar-toolkit-gtk3)) |
| 1303 | (home-page "https://help.sugarlabs.org/en/turtleart.html") | 1310 | (home-page "https://help.sugarlabs.org/en/turtleart.html") |
| 1304 | (synopsis "Block-based Logo programming environment") | 1311 | (synopsis "Block-based Logo programming environment") |
| 1305 | (description "Turtle Art, also known as Turtle Blocks, is an activity | 1312 | (description |
| 1306 | with a Logo-inspired graphical “turtle” that draws colorful art based on | 1313 | "Turtle Art, also known as Turtle Blocks, is an activity with a |
| 1314 | Logo-inspired graphical “turtle” that draws colorful art based on | ||
| 1307 | snap-together visual programming elements. Its “low floor” provides an easy | 1315 | snap-together visual programming elements. Its “low floor” provides an easy |
| 1308 | entry point for beginners. It also has “high ceiling” programming, graphics, | 1316 | entry point for beginners. It also has “high ceiling” programming, |
| 1309 | mathematics, and Computer Science features which will challenge the more | 1317 | graphics,mathematics, and Computer Science features which will challenge the |
| 1310 | adventurous student.") | 1318 | more adventurous student.") |
| 1311 | (license license:expat)))) | 1319 | (license license:expat)))) |
| 1312 | 1320 | ||
| 1313 | (define-public sugar-turtlepond-activity | 1321 | (define-public sugar-turtlepond-activity |
