~ruther/guix-local

c2d7402226c582a2372ddbf8306c66327877af4d — Nicolas Graves 3 months ago 7857757
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>
1 files changed, 14 insertions(+), 13 deletions(-)

M gnu/packages/games.scm
M gnu/packages/games.scm => gnu/packages/games.scm +14 -13
@@ 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