diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-06 19:43:20 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-10 10:26:15 +0100 |
| commit | 8dbb0f8143cfa2d42ee33f63dcd6c240e40cb78f (patch) | |
| tree | d92f2a24bde7965720eea69baa2dc0916bdf4fc6 | |
| parent | 17f15e4b7c38179a5ccd80d7f526358972847475 (diff) | |
gnu: sugar-read-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-read-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: I3d6bde4b864bd08da576fb890ccce450b391fba1
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/sugar.scm | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm index 9e6370cdf8a..cc0936efd09 100644 --- a/gnu/packages/sugar.scm +++ b/gnu/packages/sugar.scm @@ -1073,17 +1073,19 @@ Journal entries that have been ‘starred’.") (package (name "sugar-read-activity") (version "124") - (source (origin - (method url-fetch) - (uri (string-append "https://download.sugarlabs.org/sources/sucrose/fructose/" - "Read/Read-" version ".tar.bz2")) - (sha256 - (base32 - "1hla80vclprqzahr8yfnin09spv4mab7il6a00ilz4anyahrzgzy")))) - (build-system python-build-system) + (source + (origin + (method url-fetch) + (uri (string-append + "https://download.sugarlabs.org/sources/sucrose/fructose/" + "Read/Read-" version ".tar.bz2")) + (sha256 + (base32 "1hla80vclprqzahr8yfnin09spv4mab7il6a00ilz4anyahrzgzy")))) + (build-system pyproject-build-system) (arguments (list - #:test-target "check" + #:test-flags + #~(list "check") #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-launcher @@ -1091,27 +1093,29 @@ Journal entries that have been ‘starred’.") (substitute* "activity/activity.info" (("exec = sugar-activity3") (string-append "exec = " - (search-input-file inputs "/bin/sugar-activity3")))))) + (search-input-file inputs + "/bin/sugar-activity3")))))) + (delete 'build) (replace 'install (lambda _ (setenv "HOME" "/tmp") (invoke "python" "setup.py" "install" (string-append "--prefix=" #$output))))))) + (native-inputs (list python-setuptools-next)) ;; All these libraries are accessed via gobject introspection. (propagated-inputs (list evince gtk+ sugar-toolkit-gtk3 webkitgtk-for-gtk3)) - (inputs - (list gettext-minimal)) + (inputs (list gettext-minimal)) (home-page "https://help.sugarlabs.org/read.html") (synopsis "Read PDF and TXT files in the Sugar learning environment") - (description "The Read activity allows the laptop to act as a book -reader. It has a simple interface, and will view many kinds of text and -image-based book-like materials. It will have particular strengths in -handheld mode, with extremely low power consumption and simple navigation -controls.") + (description + "The Read activity allows the laptop to act as a book reader. It has a +simple interface, and will view many kinds of text and image-based book-like +materials. It will have particular strengths in handheld mode, with extremely +low power consumption and simple navigation controls.") (license license:gpl2+))) (define-public sugar-river-crossing-activity |
