diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-06 19:13:07 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-10 10:26:14 +0100 |
| commit | 230847ceb228312768129309c8a4aa561480fd3d (patch) | |
| tree | 9c6bc532fd1984da465e0ea32c62771b1fe6e854 /gnu/packages/sugar.scm | |
| parent | 01a69c74d9368c0a288db0d9cf1fd811b6b4f03b (diff) | |
gnu: sugar-cellgame-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-cellgame-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: Iad29e208959fa4c0d04e90e6e631baad3456ed5c
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/sugar.scm')
| -rw-r--r-- | gnu/packages/sugar.scm | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm index 7ec36ccef3f..a54111c9815 100644 --- a/gnu/packages/sugar.scm +++ b/gnu/packages/sugar.scm | |||
| @@ -519,19 +519,19 @@ a Tetris-like game.") | |||
| 519 | (package | 519 | (package |
| 520 | (name "sugar-cellgame-activity") | 520 | (name "sugar-cellgame-activity") |
| 521 | (version (git-version "5" revision commit)) | 521 | (version (git-version "5" revision commit)) |
| 522 | (source (origin | 522 | (source |
| 523 | (method git-fetch) | 523 | (origin |
| 524 | (uri (git-reference | 524 | (method git-fetch) |
| 525 | (url "https://github.com/sugarlabs/cellgame") | 525 | (uri (git-reference |
| 526 | (commit commit))) | 526 | (url "https://github.com/sugarlabs/cellgame") |
| 527 | (file-name (git-file-name name version)) | 527 | (commit commit))) |
| 528 | (sha256 | 528 | (file-name (git-file-name name version)) |
| 529 | (base32 | 529 | (sha256 |
| 530 | "09dxq06dr43i3g8im4j1xffl19rzr1pwbixwgb0kipnmbx8pln5c")))) | 530 | (base32 "09dxq06dr43i3g8im4j1xffl19rzr1pwbixwgb0kipnmbx8pln5c")))) |
| 531 | (build-system python-build-system) | 531 | (build-system pyproject-build-system) |
| 532 | (arguments | 532 | (arguments |
| 533 | (list | 533 | (list |
| 534 | #:test-target "check" | 534 | #:test-flags #~(list "check") |
| 535 | #:phases | 535 | #:phases |
| 536 | #~(modify-phases %standard-phases | 536 | #~(modify-phases %standard-phases |
| 537 | (add-after 'unpack 'patch-launcher | 537 | (add-after 'unpack 'patch-launcher |
| @@ -539,7 +539,8 @@ a Tetris-like game.") | |||
| 539 | (substitute* "activity/activity.info" | 539 | (substitute* "activity/activity.info" |
| 540 | (("exec = sugar-activity3") | 540 | (("exec = sugar-activity3") |
| 541 | (string-append "exec = " | 541 | (string-append "exec = " |
| 542 | (search-input-file inputs "/bin/sugar-activity3")))))) | 542 | (search-input-file inputs |
| 543 | "/bin/sugar-activity3")))))) | ||
| 543 | (add-after 'unpack 'inject-load-path | 544 | (add-after 'unpack 'inject-load-path |
| 544 | (lambda _ | 545 | (lambda _ |
| 545 | (substitute* "activity.py" | 546 | (substitute* "activity.py" |
| @@ -553,18 +554,16 @@ for directory in \"" (getenv "GUIX_PYTHONPATH") "\".split(\":\"): | |||
| 553 | sys.path.insert(1, directory) | 554 | sys.path.insert(1, directory) |
| 554 | import pygame | 555 | import pygame |
| 555 | "))))) | 556 | "))))) |
| 557 | (delete 'build) | ||
| 556 | (replace 'install | 558 | (replace 'install |
| 557 | (lambda _ | 559 | (lambda _ |
| 558 | (setenv "HOME" "/tmp") | 560 | (setenv "HOME" "/tmp") |
| 559 | (invoke "python" "setup.py" "install" | 561 | (invoke "python" "setup.py" "install" |
| 560 | (string-append "--prefix=" #$output))))))) | 562 | (string-append "--prefix=" #$output))))))) |
| 561 | ;; All these libraries are accessed via gobject introspection. | 563 | ;; All these libraries are accessed via gobject introspection. |
| 562 | (propagated-inputs | 564 | (propagated-inputs (list gtk+ sugar-toolkit-gtk3)) |
| 563 | (list gtk+ | ||
| 564 | sugar-toolkit-gtk3)) | ||
| 565 | (inputs (list python-pygame)) | 565 | (inputs (list python-pygame)) |
| 566 | (native-inputs | 566 | (native-inputs (list gettext-minimal python-setuptools-next)) |
| 567 | (list gettext-minimal)) | ||
| 568 | (home-page "https://github.com/sugarlabs/cellgame") | 567 | (home-page "https://github.com/sugarlabs/cellgame") |
| 569 | (synopsis "Cell game for Sugar") | 568 | (synopsis "Cell game for Sugar") |
| 570 | (description "This game for the Sugar desktop is based on the mechanisms | 569 | (description "This game for the Sugar desktop is based on the mechanisms |
