guix_mirror_bot pushed a commit to branch master
in repository guix.

commit f1005ad96c3842740b7893e2e84dc1b89c376d94
Author: Hugo Buddelmeijer <[email protected]>
AuthorDate: Thu Dec 18 00:01:02 2025 +0100

    gnu: mc2mt: Fix build.
    
    * gnu/packages/game-development.scm (mc2mt): Fix build and indentation.
    [source]: Move snippet to phase.
    [native-inputs]: Add python-pytest.
    
    * gnu/packages/patches/mc2mt-add-packaging-support.patch: Update patch.
    
    Change-Id: I3db227b726fa9dec8c09e49cada2d5f74e35576e
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/game-development.scm                  | 58 ++++++++++++----------
 .../patches/mc2mt-add-packaging-support.patch      |  2 +-
 2 files changed, 32 insertions(+), 28 deletions(-)

diff --git a/gnu/packages/game-development.scm 
b/gnu/packages/game-development.scm
index 465ec6c729..ff72864e77 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -2172,36 +2172,40 @@ robust and compatible with many systems and operating 
systems.")
     (license license:zlib)))
 
 (define-public mc2mt
+  ;; No tags in the repository.
   (let ((commit "039dbc26466a430e03c646dc5a9bd0822637a87a")
         (revision "0"))
-  (package
-    (name "mc2mt")
-    (version (git-version "0.1" revision commit))
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/listia/mc2mt";)
-             (commit commit)))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32 "1vnaznwgm87x0n5dp14363p2h54lpzalynrrd6lbs6wgrqq7fq9i"))
-       (patches (search-patches "mc2mt-add-packaging-support.patch"))
-       (modules '((guix build utils)))
-       (snippet
-        #~(begin
-            (substitute* "mc2mtlib/argument_parser.py"
-              (("mineclone2") "mineclone"))))))
-    (build-system pyproject-build-system)
-    (native-inputs (list python-setuptools))
-    (propagated-inputs (list python-anvil-parser))
-    (arguments
-     (list #:tests? #f)) ; no tests
-    (synopsis "Minecraft to Minetest world converter")
-    (description "@code{mc2mt} is a Minecraft to Minetest world converter.
+    (package
+      (name "mc2mt")
+      (version (git-version "0.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+                (url "https://github.com/listia/mc2mt";)
+                (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1vnaznwgm87x0n5dp14363p2h54lpzalynrrd6lbs6wgrqq7fq9i"))
+         (patches (search-patches "mc2mt-add-packaging-support.patch"))
+         (modules '((guix build utils)))))
+      (build-system pyproject-build-system)
+      (arguments
+       (list
+        #:tests? #f ; no tests
+        #:phases
+        #~(modify-phases %standard-phases
+            (add-after 'unpack 'patch-code
+              (lambda* _
+                (substitute* "mc2mtlib/argument_parser.py"
+                  (("mineclone2") "mineclone")))))))
+      (native-inputs (list python-pytest python-setuptools))
+      (propagated-inputs (list python-anvil-parser))
+      (synopsis "Minecraft to Minetest world converter")
+      (description "@code{mc2mt} is a Minecraft to Minetest world converter.
 It can convert worlds from Minecraft 1.9 and later.")
-    (home-page "https://github.com/listia/mc2mt";)
-    (license license:expat))))
+      (home-page "https://github.com/listia/mc2mt";)
+      (license license:expat))))
 
 (define-public mygui
   (package
diff --git a/gnu/packages/patches/mc2mt-add-packaging-support.patch 
b/gnu/packages/patches/mc2mt-add-packaging-support.patch
index 8be32b79e9..c1084e65c5 100644
--- a/gnu/packages/patches/mc2mt-add-packaging-support.patch
+++ b/gnu/packages/patches/mc2mt-add-packaging-support.patch
@@ -77,7 +77,7 @@ index 0000000..cf9a70d
 +[project]
 +name = 'mc2mt'
 +version = '0.1'
-+dependencies = ['anvil-parser']
++dependencies = ['anvil-parser2']
 +
 +[project.scripts]
 +mc2mt = 'mc2mtlib:mc2mt.mc2mt'

Reply via email to