summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-06 19:23:49 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-10 10:26:14 +0100
commit1498216f503ebfd2d1134bd2e5b0aa67751c63fd (patch)
tree75f31e80d680543a74c70566ea84abd225b57e2f
parentd8d2b8ba489b12077b42c8e7543be5ed6c67beec (diff)
gnu: sugar-commander-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-commander-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. [description]: Run guix style and re-indent. Change-Id: Ic9e4939efbf0152090a5e6ca49ae2be7a78dad71 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/sugar.scm42
1 files changed, 22 insertions, 20 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index 944e662eb56..ceaa2c0aee1 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -677,19 +677,19 @@ on various criteria.")
(package
(name "sugar-commander-activity")
(version (git-version "11" revision commit))
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/sugarlabs/sugar-commander")
- (commit commit)))
- (file-name (git-file-name name version))
- (sha256
- (base32
- "02n5wqh9cwr3jnjaxyd9kxcls4h3fdhhxdcyvvxmya08h20idvgd"))))
- (build-system python-build-system)
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sugarlabs/sugar-commander")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "02n5wqh9cwr3jnjaxyd9kxcls4h3fdhhxdcyvvxmya08h20idvgd"))))
+ (build-system pyproject-build-system)
(arguments
(list
- #:test-target "check"
+ #:test-flags #~(list "check")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-launcher
@@ -697,7 +697,8 @@ on various criteria.")
(substitute* "activity/activity.info"
(("exec = sugar-activity3")
(string-append "exec = "
- (search-input-file inputs "/bin/sugar-activity3"))))))
+ (search-input-file inputs
+ "/bin/sugar-activity3"))))))
(add-after 'unpack 'inject-load-path
(lambda _
(substitute* "sugarcommander.py"
@@ -711,6 +712,7 @@ for directory in \"" (getenv "GUIX_PYTHONPATH") "\".split(\":\"):
sys.path.insert(1, directory)
import logging
")))))
+ (delete 'build)
(replace 'install
(lambda _
(setenv "HOME" "/tmp")
@@ -725,16 +727,16 @@ import logging
python-pygobject
sugar-toolkit-gtk3))
(inputs (list python-pygame))
- (native-inputs
- (list gettext-minimal))
+ (native-inputs (list gettext-minimal python-setuptools-next))
(home-page "https://github.com/sugarlabs/sugar-commander")
(synopsis "Manage your Sugar journal")
- (description "Sugar-commander lets you import items from removable
-devices like USB drives and SD cards using a familiar hierarchical view of
-files on these devices, as opposed to the flattened Journal view that the
-Sugar Journal gives to these devices. It also enables you to see how much
-disk space each Journal entry uses, generates thumbnails, and does other
-things to enhance your use of the Journal.")
+ (description
+ "Sugar-commander lets you import items from removable devices like USB
+drives and SD cards using a familiar hierarchical view of files on these
+devices, as opposed to the flattened Journal view that the Sugar Journal gives
+to these devices. It also enables you to see how much disk space each Journal
+entry uses, generates thumbnails, and does other things to enhance your use of
+the Journal.")
(license license:gpl2+))))
(define-public sugar-help-activity