mirror of
https://codeberg.org/guix/guix.git
synced 2026-01-29 04:01:28 -06:00
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>
This commit is contained in:
parent
d8d2b8ba48
commit
1498216f50
1 changed files with 22 additions and 20 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue