diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-01-07 12:23:23 +0100 |
|---|---|---|
| committer | Rutherther <rutherther@ditigal.xyz> | 2026-01-25 21:24:03 +0100 |
| commit | 0fe1bdc5cc1f2601e490793b351ca4fc1fb2b1ba (patch) | |
| tree | 86163b29a109017dc5ce6bcbff8c2589ea876ca2 | |
| parent | 4b6427549c166bca64a0e9b8be430c31b446c7d9 (diff) | |
gnu: python-pyxel: Switch to pyproject.
* gnu/packages/game-development.scm (python-pyxel):
[build-system]: Switch to pyproject-build-system.
[arguments]: Improve style.
[native-inputs]: Add python-setuptools.
Change-Id: I0eaabe563883bdcd6ed4b0a268e25ba9c55285bb
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Signed-off-by: Rutherther <rutherther@ditigal.xyz>
| -rw-r--r-- | gnu/packages/game-development.scm | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index fac9703852b..c8db9d26523 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -2126,25 +2126,25 @@ supported.") (substitute* "pyxel/__init__.py" (("from collections import MutableSequence") "from collections.abc import MutableSequence")))))) - (build-system python-build-system) + (build-system pyproject-build-system) (arguments - `(#:tests? #f ; "Tests" are actually example programs that never halt. - #:phases - (modify-phases %standard-phases - (add-after 'unpack 'patch-build-files - (lambda* (#:key inputs #:allow-other-keys) - (substitute* "setup.py" - (("\"pyxel\\.core\\.bin\\.(.*)\"," all arch) - (if (string=? arch "linux") - all - ""))) - (substitute* "pyxel/core/Makefile" - (("`sdl2-config") - (string-append "`sdl2-config --prefix=" - (assoc-ref inputs "sdl2")))))) - (add-before 'build 'prebuild - (lambda _ - (invoke "make" "-C" "pyxel/core")))))) + (list + #:tests? #f ; "Tests" are actually example programs that never halt. + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch-build-files + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "setup.py" + (("\"pyxel\\.core\\.bin\\.(.*)\"," all arch) + (if (string=? arch "linux") all ""))) + (substitute* "pyxel/core/Makefile" + (("`sdl2-config") + (string-append "`sdl2-config --prefix=" + (assoc-ref inputs "sdl2")))))) + (add-before 'build 'prebuild + (lambda _ + (invoke "make" "-C" "pyxel/core")))))) + (native-inputs (list python-setuptools)) (inputs `(("gifsicle" ,gifsicle) ("sdl2" ,(sdl-union (list sdl2 sdl2-image))))) |
