diff mbox series

[bug#64362,2/3] gnu: Add python-anvil-parser.

Message ID 459fc17f-c9ea-c345-99f8-558e544740ed@disroot.org
State New
Headers show
Series gnu: Add mc2mt. | expand

Commit Message

Adam Faiz June 30, 2023, 9:22 a.m. UTC
From 9a63ff079e0dae175651e9a4f65e03cc6f3892b4 Mon Sep 17 00:00:00 2001
Message-Id: <9a63ff079e0dae175651e9a4f65e03cc6f3892b4.1688116740.git.adam.faiz@disroot.org>
In-Reply-To: <cover.1688116740.git.adam.faiz@disroot.org>
References: <cover.1688116740.git.adam.faiz@disroot.org>
From: AwesomeAdam54321 <adam.faiz@disroot.org>
Date: Fri, 30 Jun 2023 16:44:20 +0800
Subject: [PATCH 2/3] gnu: Add python-anvil-parser.

* gnu/packages/game-development.scm (python-anvil-parser): New variable.
---
 gnu/packages/game-development.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 9fcfe468ef..52f8a3787d 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -442,6 +442,28 @@  (define-public nml
 files) into @file{.grf} and/or @file{.nfo} files.")
     (license license:gpl2+)))
 
+(define-public python-anvil-parser
+  (let ((commit "27544bb41f035617be130a209a84371cbaf837cc")
+        (revision "0"))
+  (package
+    (name "python-anvil-parser")
+    (version (git-version "0.9.0" revision commit))
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/0xTiger/anvil-parser")
+             (commit commit)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "196nli36pz4sllx1m8jlys661hgbxhcxr2c4545fqb4nd27hhwy7"))))
+    (build-system python-build-system)
+    (propagated-inputs (list python-frozendict python-nbt))
+    (home-page "https://github.com/0xTiger/anvil-parser")
+    (synopsis "Minecraft anvil file format parser")
+    (description "This package provides a Minecraft anvil file format parser.")
+    (license license:expat))))
+
 (define-public python-nbt
   (package
     (name "python-nbt")