summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-09-06 19:33:32 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-09-10 10:26:14 +0100
commite210edc78cf20e4b9734730eb52217bace318cd3 (patch)
treec7f7965282b5f8453d4863ca3557eb77904de99e /gnu
parent085f50b37188973d6bf0c87577c3d4ec728408c0 (diff)
gnu: sugar-jukebox-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-jukebox-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, inputs]: Run guix style. Change-Id: I87797c241688e7c81f5a60d057dfed14134d998b Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/sugar.scm37
1 files changed, 20 insertions, 17 deletions
diff --git a/gnu/packages/sugar.scm b/gnu/packages/sugar.scm
index 202739dea7d..3d14a696831 100644
--- a/gnu/packages/sugar.scm
+++ b/gnu/packages/sugar.scm
@@ -795,19 +795,19 @@ users with easy access to documentation and manuals.")
795 (package 795 (package
796 (name "sugar-jukebox-activity") 796 (name "sugar-jukebox-activity")
797 (version (git-version "36" revision commit)) 797 (version (git-version "36" revision commit))
798 (source (origin 798 (source
799 (method git-fetch) 799 (origin
800 (uri (git-reference 800 (method git-fetch)
801 (url "https://github.com/sugarlabs/jukebox-activity") 801 (uri (git-reference
802 (commit commit))) 802 (url "https://github.com/sugarlabs/jukebox-activity")
803 (file-name (git-file-name name version)) 803 (commit commit)))
804 (sha256 804 (file-name (git-file-name name version))
805 (base32 805 (sha256
806 "1c8g4h52jnwzk5vlkrkm8j0p5dbrjqd8hv3bdz5rp39w9in3skzk")))) 806 (base32 "1c8g4h52jnwzk5vlkrkm8j0p5dbrjqd8hv3bdz5rp39w9in3skzk"))))
807 (build-system python-build-system) 807 (build-system pyproject-build-system)
808 (arguments 808 (arguments
809 (list 809 (list
810 #:test-target "check" 810 #:test-flags #~(list "check")
811 #:phases 811 #:phases
812 #~(modify-phases %standard-phases 812 #~(modify-phases %standard-phases
813 (add-after 'unpack 'patch-launcher 813 (add-after 'unpack 'patch-launcher
@@ -815,25 +815,28 @@ users with easy access to documentation and manuals.")
815 (substitute* "activity/activity.info" 815 (substitute* "activity/activity.info"
816 (("exec = sugar-activity3") 816 (("exec = sugar-activity3")
817 (string-append "exec = " 817 (string-append "exec = "
818 (search-input-file inputs "/bin/sugar-activity3")))))) 818 (search-input-file inputs
819 "/bin/sugar-activity3"))))))
820 (delete 'build)
819 (replace 'install 821 (replace 'install
820 (lambda _ 822 (lambda _
821 (setenv "HOME" "/tmp") 823 (setenv "HOME" "/tmp")
822 (invoke "python" "setup.py" "install" 824 (invoke "python" "setup.py" "install"
823 (string-append "--prefix=" #$output))))))) 825 (string-append "--prefix=" #$output)))))))
826 (native-inputs (list python-setuptools-next))
824 ;; All these libraries are accessed via gobject introspection. 827 ;; All these libraries are accessed via gobject introspection.
825 (propagated-inputs 828 (propagated-inputs
826 (list gtk+ 829 (list gtk+
827 gstreamer 830 gstreamer
828 gst-plugins-base 831 gst-plugins-base
829 sugar-toolkit-gtk3)) 832 sugar-toolkit-gtk3))
830 (inputs 833 (inputs (list gettext-minimal))
831 (list gettext-minimal))
832 (home-page "https://help.sugarlabs.org/jukebox.html") 834 (home-page "https://help.sugarlabs.org/jukebox.html")
833 (synopsis "Media player for the Sugar learning environment") 835 (synopsis "Media player for the Sugar learning environment")
834 (description "Jukebox is the media player to play different kinds of 836 (description
835audio and video files including online streams. It also supports playlists 837 "Jukebox is the media player to play different kinds of audio and video
836like @file{.m3u} and @file{.pls}.") 838files including online streams. It also supports playlists like @file{.m3u}
839and @file{.pls}.")
837 (license license:gpl2+)))) 840 (license license:gpl2+))))
838 841
839(define-public sugar-log-activity 842(define-public sugar-log-activity