summaryrefslogtreecommitdiff
path: root/gnu/packages/sugar.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-06 19:43:20 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-10 10:26:15 +0100
commit8dbb0f8143cfa2d42ee33f63dcd6c240e40cb78f (patch)
treed92f2a24bde7965720eea69baa2dc0916bdf4fc6 /gnu/packages/sugar.scm
parent17f15e4b7c38179a5ccd80d7f526358972847475 (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>
Diffstat (limited to 'gnu/packages/sugar.scm')
-rw-r--r--gnu/packages/sugar.scm38
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’.")
1073 (package 1073 (package
1074 (name "sugar-read-activity") 1074 (name "sugar-read-activity")
1075 (version "124") 1075 (version "124")
1076 (source (origin 1076 (source
1077 (method url-fetch) 1077 (origin
1078 (uri (string-append "https://download.sugarlabs.org/sources/sucrose/fructose/" 1078 (method url-fetch)
1079 "Read/Read-" version ".tar.bz2")) 1079 (uri (string-append
1080 (sha256 1080 "https://download.sugarlabs.org/sources/sucrose/fructose/"
1081 (base32 1081 "Read/Read-" version ".tar.bz2"))
1082 "1hla80vclprqzahr8yfnin09spv4mab7il6a00ilz4anyahrzgzy")))) 1082 (sha256
1083 (build-system python-build-system) 1083 (base32 "1hla80vclprqzahr8yfnin09spv4mab7il6a00ilz4anyahrzgzy"))))
1084 (build-system pyproject-build-system)
1084 (arguments 1085 (arguments
1085 (list 1086 (list
1086 #:test-target "check" 1087 #:test-flags
1088 #~(list "check")
1087 #:phases 1089 #:phases
1088 #~(modify-phases %standard-phases 1090 #~(modify-phases %standard-phases
1089 (add-after 'unpack 'patch-launcher 1091 (add-after 'unpack 'patch-launcher
@@ -1091,27 +1093,29 @@ Journal entries that have been ‘starred’.")
1091 (substitute* "activity/activity.info" 1093 (substitute* "activity/activity.info"
1092 (("exec = sugar-activity3") 1094 (("exec = sugar-activity3")
1093 (string-append "exec = " 1095 (string-append "exec = "
1094 (search-input-file inputs "/bin/sugar-activity3")))))) 1096 (search-input-file inputs
1097 "/bin/sugar-activity3"))))))
1098 (delete 'build)
1095 (replace 'install 1099 (replace 'install
1096 (lambda _ 1100 (lambda _
1097 (setenv "HOME" "/tmp") 1101 (setenv "HOME" "/tmp")
1098 (invoke "python" "setup.py" "install" 1102 (invoke "python" "setup.py" "install"
1099 (string-append "--prefix=" #$output))))))) 1103 (string-append "--prefix=" #$output)))))))
1104 (native-inputs (list python-setuptools-next))
1100 ;; All these libraries are accessed via gobject introspection. 1105 ;; All these libraries are accessed via gobject introspection.
1101 (propagated-inputs 1106 (propagated-inputs
1102 (list evince 1107 (list evince
1103 gtk+ 1108 gtk+
1104 sugar-toolkit-gtk3 1109 sugar-toolkit-gtk3
1105 webkitgtk-for-gtk3)) 1110 webkitgtk-for-gtk3))
1106 (inputs 1111 (inputs (list gettext-minimal))
1107 (list gettext-minimal))
1108 (home-page "https://help.sugarlabs.org/read.html") 1112 (home-page "https://help.sugarlabs.org/read.html")
1109 (synopsis "Read PDF and TXT files in the Sugar learning environment") 1113 (synopsis "Read PDF and TXT files in the Sugar learning environment")
1110 (description "The Read activity allows the laptop to act as a book 1114 (description
1111reader. It has a simple interface, and will view many kinds of text and 1115 "The Read activity allows the laptop to act as a book reader. It has a
1112image-based book-like materials. It will have particular strengths in 1116simple interface, and will view many kinds of text and image-based book-like
1113handheld mode, with extremely low power consumption and simple navigation 1117materials. It will have particular strengths in handheld mode, with extremely
1114controls.") 1118low power consumption and simple navigation controls.")
1115 (license license:gpl2+))) 1119 (license license:gpl2+)))
1116 1120
1117(define-public sugar-river-crossing-activity 1121(define-public sugar-river-crossing-activity