~ruther/guix-local

40aefa695b2ef9a1c53a9c7db51bffae98bcf507 — Sharlatan Hellseher 1 year, 2 months ago f8f5a10
gnu: python-pytmx: Fix build.

* gnu/packages/game-development.scm (python-pytmx): Fix build, improve
style.
[build-system]: Switch to pyproject.
[arguments] <tests?>: No tests in PyPI provided, disable.
[native-inputs]: Add python-setuptools and python-wheel.

Change-Id: Id879d37564b7b4a6fd320ca8a7cc5d3d8f182806
1 files changed, 21 insertions(+), 12 deletions(-)

M gnu/packages/game-development.scm
M gnu/packages/game-development.scm => gnu/packages/game-development.scm +21 -12
@@ 652,20 652,29 @@ for animated scrolling maps for your new or existing game.")
  (package
    (name "python-pytmx")
    (version "3.32")
    (source (origin
              (method url-fetch)
              (uri (pypi-uri "PyTMX" version))
              (sha256
               (base32
                "1jh9b0pjqbjdv72v5047p5d769ic084g013njvky0zcfiwrxi3w5"))))
    (build-system python-build-system)
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "PyTMX" version))
       (sha256
        (base32 "1jh9b0pjqbjdv72v5047p5d769ic084g013njvky0zcfiwrxi3w5"))))
    (build-system pyproject-build-system)
    (arguments
     (list
      #:tests? #f)) ; XXX: no tests in PyPI, there are in Git
    (native-inputs
     (list python-setuptools
           python-wheel))
    (propagated-inputs
     (list python-pygame python-pysdl2 python-pyglet))
  (home-page "https://github.com/bitcraft/PyTMX")
  (synopsis "Python library to read Tiled Map Editor's TMX maps")
  (description "@code{pytmx} is a map loader for python/pygame designed for games.
     (list python-pygame
           python-pysdl2
           python-pyglet))
    (home-page "https://github.com/bitcraft/PyTMX")
    (synopsis "Python library to read Tiled Map Editor's TMX maps")
    (description
     "@code{pytmx} is a map loader for python/pygame designed for games.
It provides smart tile loading with a fast and efficient storage base.")
  (license license:lgpl3+)))
    (license license:lgpl3+)))

(define-public python-tmx
  (package