diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-06 19:40:26 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-10 10:26:14 +0100 |
| commit | 22c6524f5c36ebc3cad765bf64d04088a2b81824 (patch) | |
| tree | d2add0d4926f96034bbb9bd7338301de17672b67 | |
| parent | 779f9b2078b0a25ede5ff11c6d41faba04ab2065 (diff) | |
gnu: sugar-physics-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-physics-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: I11b9a810fa3ef12f62e8623201315990a912cfcf
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/sugar.scm | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm index 4caf887617d..7d0c2e6b8d7 100644 --- a/gnu/packages/sugar.scm +++ b/gnu/packages/sugar.scm | |||
| @@ -958,19 +958,20 @@ or you can also play with a friend!") | |||
| 958 | (package | 958 | (package |
| 959 | (name "sugar-physics-activity") | 959 | (name "sugar-physics-activity") |
| 960 | (version (git-version "35" revision commit)) | 960 | (version (git-version "35" revision commit)) |
| 961 | (source (origin | 961 | (source |
| 962 | (method git-fetch) | 962 | (origin |
| 963 | (uri (git-reference | 963 | (method git-fetch) |
| 964 | (url "https://github.com/sugarlabs/physics") | 964 | (uri (git-reference |
| 965 | (commit commit))) | 965 | (url "https://github.com/sugarlabs/physics") |
| 966 | (file-name (git-file-name name version)) | 966 | (commit commit))) |
| 967 | (sha256 | 967 | (file-name (git-file-name name version)) |
| 968 | (base32 | 968 | (sha256 |
| 969 | "0yzq4cbgcngf1ayi4bsn04l3mz6pnayd6db9bv0v9xfrpjmffvyk")))) | 969 | (base32 "0yzq4cbgcngf1ayi4bsn04l3mz6pnayd6db9bv0v9xfrpjmffvyk")))) |
| 970 | (build-system python-build-system) | 970 | (build-system pyproject-build-system) |
| 971 | (arguments | 971 | (arguments |
| 972 | (list | 972 | (list |
| 973 | #:test-target "check" | 973 | #:test-flags |
| 974 | #~(list "check") | ||
| 974 | #:phases | 975 | #:phases |
| 975 | #~(modify-phases %standard-phases | 976 | #~(modify-phases %standard-phases |
| 976 | (add-after 'unpack 'patch-launcher | 977 | (add-after 'unpack 'patch-launcher |
| @@ -978,7 +979,8 @@ or you can also play with a friend!") | |||
| 978 | (substitute* "activity/activity.info" | 979 | (substitute* "activity/activity.info" |
| 979 | (("exec = sugar-activity3") | 980 | (("exec = sugar-activity3") |
| 980 | (string-append "exec = " | 981 | (string-append "exec = " |
| 981 | (search-input-file inputs "/bin/sugar-activity3")))))) | 982 | (search-input-file inputs |
| 983 | "/bin/sugar-activity3")))))) | ||
| 982 | (add-after 'unpack 'inject-load-path | 984 | (add-after 'unpack 'inject-load-path |
| 983 | (lambda _ | 985 | (lambda _ |
| 984 | (substitute* "activity.py" | 986 | (substitute* "activity.py" |
| @@ -991,26 +993,24 @@ for directory in \"" (getenv "GUIX_PYTHONPATH") "\".split(\":\"): | |||
| 991 | except ValueError: | 993 | except ValueError: |
| 992 | sys.path.insert(1, directory) | 994 | sys.path.insert(1, directory) |
| 993 | "))))) | 995 | "))))) |
| 996 | (delete 'build) | ||
| 994 | (replace 'install | 997 | (replace 'install |
| 995 | (lambda _ | 998 | (lambda _ |
| 996 | (setenv "HOME" "/tmp") | 999 | (setenv "HOME" "/tmp") |
| 997 | (invoke "python" "setup.py" "install" | 1000 | (invoke "python" "setup.py" "install" |
| 998 | (string-append "--prefix=" #$output))))))) | 1001 | (string-append "--prefix=" #$output))))))) |
| 1002 | (native-inputs (list python-setuptools-next)) | ||
| 999 | ;; All these libraries are accessed via gobject introspection. | 1003 | ;; All these libraries are accessed via gobject introspection. |
| 1000 | (propagated-inputs | 1004 | (propagated-inputs (list gtk+ gdk-pixbuf)) |
| 1001 | (list gtk+ | 1005 | (inputs (list python-pybox2d python-pygame sugar-toolkit-gtk3 |
| 1002 | gdk-pixbuf)) | 1006 | gettext-minimal)) |
| 1003 | (inputs | ||
| 1004 | (list python-pybox2d | ||
| 1005 | python-pygame | ||
| 1006 | sugar-toolkit-gtk3 | ||
| 1007 | gettext-minimal)) | ||
| 1008 | (home-page "https://github.com/sugarlabs/physics") | 1007 | (home-page "https://github.com/sugarlabs/physics") |
| 1009 | (synopsis "Physical world simulator and playground") | 1008 | (synopsis "Physical world simulator and playground") |
| 1010 | (description "Physics is a physical world simulator and playground---you | 1009 | (description |
| 1011 | can add squares, circles, triangles, or draw your own shapes, and see them | 1010 | "Physics is a physical world simulator and playground---you can add |
| 1012 | come to life with forces (think gravity, Newton!), friction (scrrrrape), and | 1011 | squares, circles, triangles, or draw your own shapes, and see them come to |
| 1013 | inertia (ahh, slow down!).") | 1012 | life with forces (think gravity, Newton!), friction (scrrrrape), and inertia |
| 1013 | (ahh, slow down!).") | ||
| 1014 | (license license:gpl3+)))) | 1014 | (license license:gpl3+)))) |
| 1015 | 1015 | ||
| 1016 | (define-public sugar-portfolio-activity | 1016 | (define-public sugar-portfolio-activity |
