~ruther/guix-local

e210edc78cf20e4b9734730eb52217bace318cd3 — Nicolas Graves 7 months ago 085f50b
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>
1 files changed, 20 insertions(+), 17 deletions(-)

M gnu/packages/sugar.scm
M gnu/packages/sugar.scm => gnu/packages/sugar.scm +20 -17
@@ 795,19 795,19 @@ users with easy access to documentation and manuals.")
    (package
      (name "sugar-jukebox-activity")
      (version (git-version "36" revision commit))
      (source (origin
                (method git-fetch)
                (uri (git-reference
                      (url "https://github.com/sugarlabs/jukebox-activity")
                      (commit commit)))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  "1c8g4h52jnwzk5vlkrkm8j0p5dbrjqd8hv3bdz5rp39w9in3skzk"))))
      (build-system python-build-system)
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://github.com/sugarlabs/jukebox-activity")
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "1c8g4h52jnwzk5vlkrkm8j0p5dbrjqd8hv3bdz5rp39w9in3skzk"))))
      (build-system pyproject-build-system)
      (arguments
       (list
        #:test-target "check"
        #:test-flags #~(list "check")
        #:phases
        #~(modify-phases %standard-phases
            (add-after 'unpack 'patch-launcher


@@ 815,25 815,28 @@ users with easy access to documentation and manuals.")
                (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 gtk+
             gstreamer
             gst-plugins-base
             sugar-toolkit-gtk3))
      (inputs
       (list gettext-minimal))
      (inputs (list gettext-minimal))
      (home-page "https://help.sugarlabs.org/jukebox.html")
      (synopsis "Media player for the Sugar learning environment")
      (description "Jukebox is the media player to play different kinds of
audio and video files including online streams.  It also supports playlists
like @file{.m3u} and @file{.pls}.")
      (description
       "Jukebox is the media player to play different kinds of audio and video
files including online streams.  It also supports playlists like @file{.m3u}
and @file{.pls}.")
      (license license:gpl2+))))

(define-public sugar-log-activity