~ruther/guix-local

ed95c695f794225351533037e9aa6ceb36acdae1 — Nicolas Graves 7 months ago 394d782
gnu: sugar-typing-turtle-activity: Switch to pyproject.

* gnu/packages/sugar.scm (sugar-typing-turtle-activity): Run guix style.
[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: I56d679a6e4fbf50dc7e8587f090ba97994861401
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 21 insertions(+), 18 deletions(-)

M gnu/packages/sugar.scm
M gnu/packages/sugar.scm => gnu/packages/sugar.scm +21 -18
@@ 1386,19 1386,20 @@ surround the turtle before it runs off the screen.")
  (package
    (name "sugar-typing-turtle-activity")
    (version "32")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/sugarlabs/typing-turtle-activity")
                    (commit (string-append "v" version))))
              (file-name (git-file-name name version))
              (sha256
               (base32
                "0shadv9wgddjvl97kvsqb8iw1wmmfw5lzcqk78hd70pzvh4c1hmd"))))
    (build-system python-build-system)
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/sugarlabs/typing-turtle-activity")
             (commit (string-append "v" version))))
       (file-name (git-file-name name version))
       (sha256
        (base32 "0shadv9wgddjvl97kvsqb8iw1wmmfw5lzcqk78hd70pzvh4c1hmd"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:test-target "check"
      #:test-flags
      #~(list "check")
      #:phases
      #~(modify-phases %standard-phases
          (add-after 'unpack 'patch-reference-to-executables


@@ 1411,20 1412,22 @@ surround the turtle before it runs off the screen.")
              (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 _
              (invoke "python" "setup.py" "install"
                      (string-append "--prefix=" #$output)))))))
    (native-inputs
     (list gettext-minimal sugar-toolkit-gtk3))
    (inputs
     (list setxkbmap))
     (list gettext-minimal sugar-toolkit-gtk3 python-setuptools-next))
    (inputs (list setxkbmap))
    (home-page "https://help.sugarlabs.org/en/typing_turtle.html")
    (synopsis "Learn typing")
    (description "Need some help typing?  In this activity for the Sugar
environment you will learn the best way to hold your hands in order for you to
become a faster typist.")
    (description
     "Need some help typing?  In this activity for the Sugar environment you
will learn the best way to hold your hands in order for you to become a faster
typist.")
    (license license:gpl3+)))

(define-public sugar-write-activity