diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-06 19:23:49 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-10 10:26:14 +0100 |
| commit | 1498216f503ebfd2d1134bd2e5b0aa67751c63fd (patch) | |
| tree | 75f31e80d680543a74c70566ea84abd225b57e2f /gnu | |
| parent | d8d2b8ba489b12077b42c8e7543be5ed6c67beec (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>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/sugar.scm | 42 |
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.") | |||
| 677 | (package | 677 | (package |
| 678 | (name "sugar-commander-activity") | 678 | (name "sugar-commander-activity") |
| 679 | (version (git-version "11" revision commit)) | 679 | (version (git-version "11" revision commit)) |
| 680 | (source (origin | 680 | (source |
| 681 | (method git-fetch) | 681 | (origin |
| 682 | (uri (git-reference | 682 | (method git-fetch) |
| 683 | (url "https://github.com/sugarlabs/sugar-commander") | 683 | (uri (git-reference |
| 684 | (commit commit))) | 684 | (url "https://github.com/sugarlabs/sugar-commander") |
| 685 | (file-name (git-file-name name version)) | 685 | (commit commit))) |
| 686 | (sha256 | 686 | (file-name (git-file-name name version)) |
| 687 | (base32 | 687 | (sha256 |
| 688 | "02n5wqh9cwr3jnjaxyd9kxcls4h3fdhhxdcyvvxmya08h20idvgd")))) | 688 | (base32 "02n5wqh9cwr3jnjaxyd9kxcls4h3fdhhxdcyvvxmya08h20idvgd")))) |
| 689 | (build-system python-build-system) | 689 | (build-system pyproject-build-system) |
| 690 | (arguments | 690 | (arguments |
| 691 | (list | 691 | (list |
| 692 | #:test-target "check" | 692 | #:test-flags #~(list "check") |
| 693 | #:phases | 693 | #:phases |
| 694 | #~(modify-phases %standard-phases | 694 | #~(modify-phases %standard-phases |
| 695 | (add-after 'unpack 'patch-launcher | 695 | (add-after 'unpack 'patch-launcher |
| @@ -697,7 +697,8 @@ on various criteria.") | |||
| 697 | (substitute* "activity/activity.info" | 697 | (substitute* "activity/activity.info" |
| 698 | (("exec = sugar-activity3") | 698 | (("exec = sugar-activity3") |
| 699 | (string-append "exec = " | 699 | (string-append "exec = " |
| 700 | (search-input-file inputs "/bin/sugar-activity3")))))) | 700 | (search-input-file inputs |
| 701 | "/bin/sugar-activity3")))))) | ||
| 701 | (add-after 'unpack 'inject-load-path | 702 | (add-after 'unpack 'inject-load-path |
| 702 | (lambda _ | 703 | (lambda _ |
| 703 | (substitute* "sugarcommander.py" | 704 | (substitute* "sugarcommander.py" |
| @@ -711,6 +712,7 @@ for directory in \"" (getenv "GUIX_PYTHONPATH") "\".split(\":\"): | |||
| 711 | sys.path.insert(1, directory) | 712 | sys.path.insert(1, directory) |
| 712 | import logging | 713 | import logging |
| 713 | "))))) | 714 | "))))) |
| 715 | (delete 'build) | ||
| 714 | (replace 'install | 716 | (replace 'install |
| 715 | (lambda _ | 717 | (lambda _ |
| 716 | (setenv "HOME" "/tmp") | 718 | (setenv "HOME" "/tmp") |
| @@ -725,16 +727,16 @@ import logging | |||
| 725 | python-pygobject | 727 | python-pygobject |
| 726 | sugar-toolkit-gtk3)) | 728 | sugar-toolkit-gtk3)) |
| 727 | (inputs (list python-pygame)) | 729 | (inputs (list python-pygame)) |
| 728 | (native-inputs | 730 | (native-inputs (list gettext-minimal python-setuptools-next)) |
| 729 | (list gettext-minimal)) | ||
| 730 | (home-page "https://github.com/sugarlabs/sugar-commander") | 731 | (home-page "https://github.com/sugarlabs/sugar-commander") |
| 731 | (synopsis "Manage your Sugar journal") | 732 | (synopsis "Manage your Sugar journal") |
| 732 | (description "Sugar-commander lets you import items from removable | 733 | (description |
| 733 | devices like USB drives and SD cards using a familiar hierarchical view of | 734 | "Sugar-commander lets you import items from removable devices like USB |
| 734 | files on these devices, as opposed to the flattened Journal view that the | 735 | drives and SD cards using a familiar hierarchical view of files on these |
| 735 | Sugar Journal gives to these devices. It also enables you to see how much | 736 | devices, as opposed to the flattened Journal view that the Sugar Journal gives |
| 736 | disk space each Journal entry uses, generates thumbnails, and does other | 737 | to these devices. It also enables you to see how much disk space each Journal |
| 737 | things to enhance your use of the Journal.") | 738 | entry uses, generates thumbnails, and does other things to enhance your use of |
| 739 | the Journal.") | ||
| 738 | (license license:gpl2+)))) | 740 | (license license:gpl2+)))) |
| 739 | 741 | ||
| 740 | (define-public sugar-help-activity | 742 | (define-public sugar-help-activity |
