diff options
| author | Hugo Buddelmeijer <hugo@buddelmeijer.nl> | 2025-12-18 00:01:02 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-12-27 16:35:28 +0000 |
| commit | f1005ad96c3842740b7893e2e84dc1b89c376d94 (patch) | |
| tree | e9deeac179ffacf94d1b28843bc32d1d9e5f87fe /gnu/packages | |
| parent | 3ded25e6f1a74b1ccd6418396b45e0650f3c14f4 (diff) | |
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 <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/game-development.scm | 58 | ||||
| -rw-r--r-- | gnu/packages/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 465ec6c7298..ff72864e77c 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 8be32b79e9e..c1084e65c5e 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' |
