summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-06 19:54:19 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-10 10:26:15 +0100
commit7eeeb2d8ce65b5430de53a332fff631150846e27 (patch)
treee99658c1aee1f2739f618a6fe9d450fccedd2505 /gnu
parented95c695f794225351533037e9aa6ceb36acdae1 (diff)
gnu: sugar-write-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-write-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: Ic8a9b089de23000141a492a3baee36a5ab0bb4bb Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/sugar.scm39
1 files changed, 21 insertions, 18 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index b16c2cd7c81..973b9e41f7a 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -1436,19 +1436,20 @@ typist.")
(package
(name "sugar-write-activity")
(version (git-version "101" revision commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/sugarlabs/write-activity")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "0lw34hf31fyfvqilzlmcz3c7zki0iqkn1zp2sv3dih016gwqg5pw"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sugarlabs/write-activity")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0lw34hf31fyfvqilzlmcz3c7zki0iqkn1zp2sv3dih016gwqg5pw"))))
+ (build-system pyproject-build-system)
(arguments
(list
- #:test-target "check"
+ #:test-flags
+ #~(list "check")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-launcher
@@ -1456,12 +1457,15 @@ typist.")
(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 abiword
@@ -1469,12 +1473,11 @@ typist.")
gtk+
libgsf
telepathy-glib))
- (inputs
- (list sugar-toolkit-gtk3
- gettext-minimal))
+ (inputs (list sugar-toolkit-gtk3 gettext-minimal))
(home-page "https://help.sugarlabs.org/write.html")
(synopsis "Word processor for Sugar desktop")
- (description "Write is a word processor activity for the Sugar desktop.
-Write embeds the AbiWord word processor, and can be used to write and edit
-text documents.")
+ (description
+ "Write is a word processor activity for the Sugar desktop. Write embeds
+the AbiWord word processor, and can be used to write and edit text
+documents.")
(license license:gpl2+))))