Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (define-public python-pyxel
- (package-with-c-toolchain
- (package
- (name "python-pyxel")
- (version "1.4.3")
- (source
- (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/kitao/pyxel")
- (commit (string-append "v" version))))
- (modules '((guix build utils)))
- (snippet
- '(begin
- ;; Remove bundled binaries.
- (delete-file-recursively "pyxel/core/bin")
- #t))
- (sha256
- (base32
- "0bwsgb5yq5s479cnf046v379zsn5ybp5195kbfvzr9l11qbaicm9"))))
- (build-system python-build-system)
- (arguments
- `(#:phases
- (modify-phases %standard-phases
- (delete 'check)
- (add-before 'build 'build-library
- (lambda* (#:key inputs #:allow-other-keys)
- (let* ((sdl2 (assoc-ref inputs "sdl2"))
- (sdl2-include (string-append sdl2 "/include/SDL2")))
- (setenv "CPLUS_INCLUDE_PATH"
- (string-append sdl2-include ":"
- (getenv "CPLUS_INCLUDE_PATH")))
- (invoke "make" "-C" "pyxel/core" "clean" "all")
- (substitute* "setup.py"
- (("pyxel.core.bin.macos") "")
- (("pyxel.core.bin.win32") "")
- (("pyxel.core.bin.win64") ""))))))))
- (inputs
- `(("gifsicle" ,gifsicle)
- ("sdl2" ,(sdl-union (list sdl2 sdl2-image)))))
- (home-page "https://github.com/kitao/pyxel")
- (synopsis "A retro game engine for Python")
- (description "Retro game engine with the following features:
- @enumerate
- @item Fixed 16 color palette
- @item 256x256 sized 3 image banks
- @item 256x256 sized 8 tilemaps
- @item 4 channels with 64 definable sounds
- @item 8 musics which can combine arbitrary sounds
- @item Image and sound editor
- @end enumerate")
- (license license:expat))
- `(("gcc-toolchain-10" ,gcc-toolchain-10))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement