~ruther/guix-local

779f9b2078b0a25ede5ff11c6d41faba04ab2065 — Nicolas Graves 7 months ago bc0de8c
gnu: sugar-maze-activity: Switch to pyproject.

* gnu/packages/sugar.scm (sugar-maze-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.

Change-Id: Ie2fbfd5b7c49e726a35a066340a389ea2089a0e5
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 18 insertions(+), 17 deletions(-)

M gnu/packages/sugar.scm
M gnu/packages/sugar.scm => gnu/packages/sugar.scm +18 -17
@@ 913,19 913,20 @@ looking for why an activity or Sugar is not working properly.")
  (package
    (name "sugar-maze-activity")
    (version "32")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/sugarlabs/maze-activity")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0506mwxy3agyxlilb5v3pn29pg45lzaxm8rhj9azm58irs3wdmnq"))))
    (build-system python-build-system)
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/sugarlabs/maze-activity")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0506mwxy3agyxlilb5v3pn29pg45lzaxm8rhj9azm58irs3wdmnq"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-target "check"
      #:test-flags
      #~(list "check")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-launcher


@@ 933,18 934,18 @@ looking for why an activity or Sugar is not working properly.")
              (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+
           telepathy-glib))
    (inputs
     (list sugar-toolkit-gtk3 gettext-minimal))
    (propagated-inputs (list gtk+ telepathy-glib))
    (inputs (list sugar-toolkit-gtk3 gettext-minimal))
    (home-page "https://github.com/sugarlabs/maze-activity")
    (synopsis "Simple maze game for the Sugar learning environment")
    (description "Try to make your way through an increasingly difficult path,