mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: sugar-river-crossing-activity: Switch to pyproject.
* gnu/packages/sugar.scm (sugar-river-crossing-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: Ie0c7b677df17991974908bed17ac7b9f3880ee30 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
parent
8dbb0f8143
commit
c8133d2a57
1 changed files with 23 additions and 22 deletions
|
@ -1124,19 +1124,20 @@ low power consumption and simple navigation controls.")
|
||||||
(package
|
(package
|
||||||
(name "sugar-river-crossing-activity")
|
(name "sugar-river-crossing-activity")
|
||||||
(version (git-version "1" revision commit))
|
(version (git-version "1" revision commit))
|
||||||
(source (origin
|
(source
|
||||||
(method git-fetch)
|
(origin
|
||||||
(uri (git-reference
|
(method git-fetch)
|
||||||
(url "https://github.com/sugarlabs/river-crossing-activity")
|
(uri (git-reference
|
||||||
(commit commit)))
|
(url "https://github.com/sugarlabs/river-crossing-activity")
|
||||||
(file-name (git-file-name name version))
|
(commit commit)))
|
||||||
(sha256
|
(file-name (git-file-name name version))
|
||||||
(base32
|
(sha256
|
||||||
"0h7c3i288vwz249figw3jwyylwhlh9qlgjhlbs902ldpmib0k237"))))
|
(base32 "0h7c3i288vwz249figw3jwyylwhlh9qlgjhlbs902ldpmib0k237"))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:test-target "check"
|
#:test-flags
|
||||||
|
#~(list "check")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'patch-launcher
|
(add-after 'unpack 'patch-launcher
|
||||||
|
@ -1144,7 +1145,8 @@ low power consumption and simple navigation controls.")
|
||||||
(substitute* "activity/activity.info"
|
(substitute* "activity/activity.info"
|
||||||
(("exec = sugar-activity3")
|
(("exec = sugar-activity3")
|
||||||
(string-append "exec = "
|
(string-append "exec = "
|
||||||
(search-input-file inputs "/bin/sugar-activity3"))))))
|
(search-input-file inputs
|
||||||
|
"/bin/sugar-activity3"))))))
|
||||||
(add-after 'unpack 'inject-load-path
|
(add-after 'unpack 'inject-load-path
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "activity.py"
|
(substitute* "activity.py"
|
||||||
|
@ -1158,24 +1160,23 @@ for directory in \"" (getenv "GUIX_PYTHONPATH") "\".split(\":\"):
|
||||||
sys.path.insert(1, directory)
|
sys.path.insert(1, directory)
|
||||||
import pygame
|
import pygame
|
||||||
")))))
|
")))))
|
||||||
|
(delete 'build)
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
(invoke "python" "setup.py" "install"
|
(invoke "python" "setup.py" "install"
|
||||||
(string-append "--prefix=" #$output)))))))
|
(string-append "--prefix=" #$output)))))))
|
||||||
|
(native-inputs (list python-setuptools-next))
|
||||||
;; These libraries are accessed via gobject introspection.
|
;; These libraries are accessed via gobject introspection.
|
||||||
(propagated-inputs
|
(propagated-inputs (list gtk+))
|
||||||
(list gtk+))
|
(inputs (list python-pygame sugar-toolkit-gtk3 gettext-minimal))
|
||||||
(inputs
|
|
||||||
(list python-pygame
|
|
||||||
sugar-toolkit-gtk3
|
|
||||||
gettext-minimal))
|
|
||||||
(home-page "https://github.com/sugarlabs/river-crossing-activity")
|
(home-page "https://github.com/sugarlabs/river-crossing-activity")
|
||||||
(synopsis "Puzzle game for Sugar desktop")
|
(synopsis "Puzzle game for Sugar desktop")
|
||||||
(description "A farmer is to ferry across a river a goat, a cabbage, and
|
(description
|
||||||
a wolf. The boat allows the farmer to carry only one of the three at a time.
|
"A farmer is to ferry across a river a goat, a cabbage, and a wolf.
|
||||||
Without supervision, the goat will gobble the cabbage whereas the wolf will
|
The boat allows the farmer to carry only one of the three at a time. Without
|
||||||
not hesitate to feast on the goat.")
|
supervision, the goat will gobble the cabbage whereas the wolf will not
|
||||||
|
hesitate to feast on the goat.")
|
||||||
(license license:gpl3+))))
|
(license license:gpl3+))))
|
||||||
|
|
||||||
(define-public sugar-terminal-activity
|
(define-public sugar-terminal-activity
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue