gnu: python-pyxel: Update to 1.4.3-2.be75b72.

* gnu/packages/game-development.scm (python-pyxel): Update to 1.4.3-2.be75b72.
[version]: Use git-version even though it is a release.
[source]<git-reference>: Use commit.
<snippet>: Adjust accordingly.
This commit is contained in:
Liliana Marie Prikler 2023-09-15 21:53:27 +02:00
parent 04fad62acd
commit e4fdf062dc
No known key found for this signature in database
GPG key ID: 442A84B8C70E2F87

View file

@ -1646,53 +1646,61 @@ (define* (install-renpy-game #:key output game name (renpy renpy)
(license license:expat))) (license license:expat)))
(define-public python-pyxel (define-public python-pyxel
(package ;; Note to updaters: Use commit and revision even if you're bumping
(name "python-pyxel") ;; to a release, as upstream is known to "reuse" tags.
(version "1.4.3") ;; See <https://bugs.gnu.org/66015> for more information.
(source (let ((commit "be75b724cae9e10e56a82a5421f9dd65390f1a06")
(origin (revision "2"))
(method git-fetch) (package
(uri (name "python-pyxel")
(git-reference ;; This is the latest version to not require Rust…
(url "https://github.com/kitao/pyxel") (version (git-version "1.4.3" revision commit))
(commit (string-append "v" version)))) (source
(file-name (git-file-name name version)) (origin
(sha256 (method git-fetch)
(base32 (uri
"0bwsgb5yq5s479cnf046v379zsn5ybp5195kbfvzr9l11qbaicm9")) (git-reference
(modules '((guix build utils))) (url "https://github.com/kitao/pyxel")
(snippet (commit commit)))
'(begin (file-name (git-file-name name version))
(delete-file-recursively "pyxel/core/bin"))))) (sha256
(build-system python-build-system) (base32
(arguments "03ch79cmh9fxvq6c2f3zc2snzczhqi2n01f254lsigckc7d5wz08"))
`(#:tests? #f ; "Tests" are actually example programs that never halt. (modules '((guix build utils)))
#:phases (snippet
(modify-phases %standard-phases #~(begin
(add-after 'unpack 'patch-build-files (substitute* "pyxel/__init__.py"
(lambda* (#:key inputs #:allow-other-keys) (("from collections import MutableSequence")
(substitute* "setup.py" "from collections.abc import MutableSequence"))))))
(("\"pyxel\\.core\\.bin\\.(.*)\"," all arch) (build-system python-build-system)
(if (string=? arch "linux") (arguments
all `(#:tests? #f ; "Tests" are actually example programs that never halt.
""))) #:phases
(substitute* "pyxel/core/Makefile" (modify-phases %standard-phases
(("`sdl2-config") (add-after 'unpack 'patch-build-files
(string-append "`sdl2-config --prefix=" (lambda* (#:key inputs #:allow-other-keys)
(assoc-ref inputs "sdl2")))))) (substitute* "setup.py"
(add-before 'build 'prebuild (("\"pyxel\\.core\\.bin\\.(.*)\"," all arch)
(lambda _ (if (string=? arch "linux")
(invoke "make" "-C" "pyxel/core")))))) all
(inputs "")))
`(("gifsicle" ,gifsicle) (substitute* "pyxel/core/Makefile"
("sdl2" ,(sdl-union (list sdl2 sdl2-image))))) (("`sdl2-config")
(home-page "https://github.com/kitao/pyxel") (string-append "`sdl2-config --prefix="
(synopsis "Retro game engine for Python") (assoc-ref inputs "sdl2"))))))
(description "Pyxel is a game engine inspired by retro gaming consoles. (add-before 'build 'prebuild
(lambda _
(invoke "make" "-C" "pyxel/core"))))))
(inputs
`(("gifsicle" ,gifsicle)
("sdl2" ,(sdl-union (list sdl2 sdl2-image)))))
(home-page "https://github.com/kitao/pyxel")
(synopsis "Retro game engine for Python")
(description "Pyxel is a game engine inspired by retro gaming consoles.
It has a fixed 16-color palette, can hold up to 3 image banks and 8 tilemaps It has a fixed 16-color palette, can hold up to 3 image banks and 8 tilemaps
(256x256 pixels each) and 4 sound channels with 64 definable sounds. It (256x256 pixels each) and 4 sound channels with 64 definable sounds. It
also comes with a built-in image and sound editor.") also comes with a built-in image and sound editor.")
(license license:expat))) (license license:expat))))
(define-public grafx2 (define-public grafx2
(package (package