guix_mirror_bot pushed a commit to branch next-master
in repository guix.

commit 884ea043db2dd4303d3d25dca1492d78ec4c8a75
Author: Nicolas Graves <[email protected]>
AuthorDate: Tue Dec 30 19:12:58 2025 +0100

    gnu: nml: Switch to pyproject.
    
    * gnu/packages/game-development.scm (nml):
    [source]: Switch to git-fetch.
    [build-system]: Switch to pyproject-build-system.
    [arguments]<#:phases>: Use tests? for 'check phase.
    [native-inputs]: Add python-setuptools.
    
    Change-Id: I4bcc1e586e0fd9e0cec749e85502661532485975
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/game-development.scm | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/game-development.scm 
b/gnu/packages/game-development.scm
index 581806f3a3..c8002b23f0 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -514,19 +514,24 @@ PCM data.")
     (version "0.8.1")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "nml" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/OpenTTD/nml";)
+              (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "0krs3jac9jc0zqr59ivfl5vibqc15b4yhww73j3c01dla1shvlcj"))))
+        (base32 "03qrpnv2r2kjjfqkc67sqjzxq59li7vb1jhbdhgif8kf2x92805k"))))
     (arguments
-     (list #:phases
-           #~(modify-phases %standard-phases
-               (replace 'check
-                 (lambda _
-                   (invoke "make" "-C" "regression"))))))
-    (build-system python-build-system)
-    (propagated-inputs
-     (list python-pillow python-ply))
+     (list
+      #:phases
+      #~(modify-phases %standard-phases
+          (replace 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+              (when tests?
+                (invoke "make" "-C" "regression")))))))
+    (build-system pyproject-build-system)
+    (native-inputs (list python-setuptools))
+    (propagated-inputs (list python-pillow python-ply))
     (home-page "https://github.com/OpenTTD/nml";)
     (synopsis "NML compiler")
     (description

Reply via email to