sharlatan pushed a commit to branch master
in repository guix.

commit 40aefa695b2ef9a1c53a9c7db51bffae98bcf507
Author: Sharlatan Hellseher <sharlata...@gmail.com>
AuthorDate: Tue May 6 23:21:51 2025 +0100

    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
---
 gnu/packages/game-development.scm | 33 +++++++++++++++++++++------------
 1 file changed, 21 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/game-development.scm 
b/gnu/packages/game-development.scm
index 0b905021ea..f9b80da6ab 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -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

Reply via email to