gnu: tuxemon: Switch to pyproject.

* gnu/packages/games.scm (tuxemon):
[build-system]: Switch to pyproject-build-system.
[arguments]: Relocate field.
[native-inputs]: Add python-setuptools.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Nicolas Graves 2025-11-22 22:29:26 +01:00 committed by Ludovic Courtès
parent 785775739b
commit c2d7402226
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -6637,7 +6637,20 @@ safety of the Chromium vessel.")
(("==") ">="))
(substitute* "tuxemon/constants/paths.py"
(("LIBDIR, ....,") "LIBDIR,"))))))
(build-system python-build-system)
(build-system pyproject-build-system)
(arguments
(list
#:tests? #f ; Tests won't be updated until the API stabilises
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'install-mods
(lambda _
(let ((site (string-append #$output "/lib/python"
#$(version-major+minor
(package-version python))
"/site-packages/tuxemon/mods")))
(mkdir-p site)
(copy-recursively "mods" site)))))))
(native-inputs (list python-flit-core python-setuptools))
(propagated-inputs
(list python-babel
@ -6653,18 +6666,6 @@ safety of the Chromium vessel.")
python-pygame-menu
python-pyyaml
python-requests))
(arguments
(list #:tests? #f ; Tests won't be updated until the API stabilises
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'install-mods
(lambda _
(let ((site (string-append #$output "/lib/python"
#$(version-major+minor
(package-version python))
"/site-packages/tuxemon/mods")))
(mkdir-p site)
(copy-recursively "mods" site)))))))
(home-page "https://www.tuxemon.org/")
(synopsis "Monster-fighting RPG")
(description