From patchwork Sat Jul 1 11:40:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 51482 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 38A0227BBEA; Sat, 1 Jul 2023 12:41:12 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8C0F327BBE2 for ; Sat, 1 Jul 2023 12:41:11 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFYyO-0007jh-5m; Sat, 01 Jul 2023 07:41:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFYyM-0007jQ-2w for guix-patches@gnu.org; Sat, 01 Jul 2023 07:41:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFYyL-0002nF-Qh for guix-patches@gnu.org; Sat, 01 Jul 2023 07:41:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFYyL-0007T6-MM for guix-patches@gnu.org; Sat, 01 Jul 2023 07:41:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64362] [PATCH v1 1/3] gnu: Add python-nbt. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Jul 2023 11:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64362 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler , 64362@debbugs.gnu.org Received: via spool by 64362-submit@debbugs.gnu.org id=B64362.168821165428688 (code B ref 64362); Sat, 01 Jul 2023 11:41:01 +0000 Received: (at 64362) by debbugs.gnu.org; 1 Jul 2023 11:40:54 +0000 Received: from localhost ([127.0.0.1]:56843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFYyE-0007Se-B5 for submit@debbugs.gnu.org; Sat, 01 Jul 2023 07:40:54 -0400 Received: from knopi.disroot.org ([178.21.23.139]:35032) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFYyA-0007SQ-Sb for 64362@debbugs.gnu.org; Sat, 01 Jul 2023 07:40:52 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8DE2644F02; Sat, 1 Jul 2023 13:40:46 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rZiTKjhW_iIC; Sat, 1 Jul 2023 13:40:45 +0200 (CEST) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1688211645; bh=xNF+KTf0WvzA5ew4UYLFJ9W8iAigGILmlq9rA1njr5A=; h=Date:Subject:To:References:From:In-Reply-To; b=Xk0W7PT5xOwgkFneV9RP++GMjI8Hygil1CKrsm9L2UAi5hmfHugKry3bJb1bcpxAi HoQ3TE66zTiO4R4HSymfxudwTsIQRTGiTR6A1ju45mNnGypl7D+QLNdMks5UMGaXJH LX1ohbOHNsvlDjAEDw4UU66iaKtW5MO+OEtvUkftqNRRc3r4nm/HqJrGSrtIafTofY gf1cCQ54QXrbfLDGY7ce77TpkwPfF+hX59HWdIs5lKLr16ctu9fMyf+RB30TJG3NAV gCDYmoHVmNzyPqEjXRb7NncWa+S5rKsV/8PbzpERaBs5Cd04QNL4Wt+pNUtgOY4Tg4 q5L6b0K0Eovgw== Date: Sat, 1 Jul 2023 19:40:41 +0800 MIME-Version: 1.0 References: <6a3d5c55-d481-e3dc-f423-eb7f6c8313b9@disroot.org> <459fc17f-c9ea-c345-99f8-558e544740ed@disroot.org> <77adeda8-6ab9-19f5-4b47-bed7a9f12a42@disroot.org> <43ba5dee30a02e26492f0ae8b29946bf88d9e652.camel@gmail.com> <06b84aed8e4ec053bcd3881c585b85e3a9c23abf.camel@gmail.com> Content-Language: en-US In-Reply-To: <06b84aed8e4ec053bcd3881c585b85e3a9c23abf.camel@gmail.com> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 8886dce031a397faa7f9bbf15cc1a195667ad9c6 Mon Sep 17 00:00:00 2001 Message-Id: <8886dce031a397faa7f9bbf15cc1a195667ad9c6.1688211506.git.adam.faiz@disroot.org> From: AwesomeAdam54321 Date: Fri, 30 Jun 2023 16:33:28 +0800 Subject: [PATCH v1 1/3] gnu: Add python-nbt. * gnu/packages/game-development.scm (python-nbt): New variable. --- gnu/packages/game-development.scm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) base-commit: f25529b08e356f89ca7cecc44295085531a8faba diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 1b93773b6d..446a3c2b1b 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -442,6 +442,23 @@ (define-public nml files) into @file{.grf} and/or @file{.nfo} files.") (license license:gpl2+))) +(define-public python-nbt + (package + (name "python-nbt") + (version "1.5.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "NBT" version)) + (sha256 + (base32 + "1i9ncrzy5zcfnxzkh2j31n9ayzxfncckzwa6fkz9vjq5fq9v4fys")))) + (build-system python-build-system) + (home-page "http://github.com/twoolie/NBT") + (synopsis "Named Binary Tag reader/writer") + (description "This library is a parser/writer for the NBT file format, +and it's container the RegionFile.") + (license license:expat))) + (define-public python-sge (package (name "python-sge") From patchwork Sat Jul 1 11:42:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 51483 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 86B7D27BBE9; Sat, 1 Jul 2023 12:43:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 7AB9C27BBE2 for ; Sat, 1 Jul 2023 12:43:13 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFZ0L-00083E-OM; Sat, 01 Jul 2023 07:43:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFZ0I-000808-H5 for guix-patches@gnu.org; Sat, 01 Jul 2023 07:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFZ0I-0003OP-4W for guix-patches@gnu.org; Sat, 01 Jul 2023 07:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFZ0I-0007W4-09 for guix-patches@gnu.org; Sat, 01 Jul 2023 07:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64362] [PATCH v1 2/3] gnu: Add python-anvil-parser. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 01 Jul 2023 11:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64362 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64362@debbugs.gnu.org, Liliana Marie Prikler Received: via spool by 64362-submit@debbugs.gnu.org id=B64362.168821176628866 (code B ref 64362); Sat, 01 Jul 2023 11:43:01 +0000 Received: (at 64362) by debbugs.gnu.org; 1 Jul 2023 11:42:46 +0000 Received: from localhost ([127.0.0.1]:56847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFZ01-0007VW-Q1 for submit@debbugs.gnu.org; Sat, 01 Jul 2023 07:42:46 -0400 Received: from knopi.disroot.org ([178.21.23.139]:58412) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFZ00-0007VL-GB for 64362@debbugs.gnu.org; Sat, 01 Jul 2023 07:42:45 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E6BC044EE6; Sat, 1 Jul 2023 13:42:40 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id o9MgjGx2xtxA; Sat, 1 Jul 2023 13:42:39 +0200 (CEST) Message-ID: <40c7484f-a0ac-86de-ad5b-22e0bf1b1b1e@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1688211759; bh=6tHzrsCdRGYmg/GEYt3meip3U66oyQAkN1IzYxA36tA=; h=Date:Subject:From:To:References:In-Reply-To; b=EZTUX1eqRTtJVYjHkk+Y9ZnPdD8y41uIWc3cpa6Ph8vp4EiuV4DIUKHO7ZRwvowHF TeZHkZQUKpLXOFGQQn+R4kjetoB7X8EweV+S62IZrpnh9+M5VkPCmZo1DSeW+MBOQa fOtY1qelL0phdKVEUow9Xp4ePHiyQVT27xcMTpoH+ZqaPdkB71pgdW1qc3fFBL5ls0 mIRRQPD1eDgZzhajWL5pl20LxemheIvzPjGaoDJ95XZNkvjMksLEPadcH/0cbwWL4x n4+s7+X7WXd3kl7dWISgGcuX3TUc/mbsHA8JTl30g0sx0yPy7PEXiYdQFW0ZiXRwSu nQTcHMs+2ZkSA== Date: Sat, 1 Jul 2023 19:42:36 +0800 MIME-Version: 1.0 Content-Language: en-US References: <6a3d5c55-d481-e3dc-f423-eb7f6c8313b9@disroot.org> <459fc17f-c9ea-c345-99f8-558e544740ed@disroot.org> <77adeda8-6ab9-19f5-4b47-bed7a9f12a42@disroot.org> <43ba5dee30a02e26492f0ae8b29946bf88d9e652.camel@gmail.com> <06b84aed8e4ec053bcd3881c585b85e3a9c23abf.camel@gmail.com> In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 20f99f50f698235c88daebd3a9638e96b7a61dbf Mon Sep 17 00:00:00 2001 Message-Id: <20f99f50f698235c88daebd3a9638e96b7a61dbf.1688211506.git.adam.faiz@disroot.org> In-Reply-To: <8886dce031a397faa7f9bbf15cc1a195667ad9c6.1688211506.git.adam.faiz@disroot.org> References: <8886dce031a397faa7f9bbf15cc1a195667ad9c6.1688211506.git.adam.faiz@disroot.org> From: AwesomeAdam54321 Date: Fri, 30 Jun 2023 16:44:20 +0800 Subject: [PATCH v1 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 --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 446a3c2b1b..503c5e1f73 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 "Anvil file format parser") + (description "This package provides an Anvil file format parser.") + (license license:expat)))) + (define-public python-nbt (package (name "python-nbt") From patchwork Fri Jun 30 09:34:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 51455 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 351A027BBE9; Fri, 30 Jun 2023 10:35:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 16A5A27BBE2 for ; Fri, 30 Jun 2023 10:35:19 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFAWv-0006ZE-Ih; Fri, 30 Jun 2023 05:35:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qFAWs-0006Yh-R1 for guix-patches@gnu.org; Fri, 30 Jun 2023 05:35:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qFAWs-0002ZB-HA for guix-patches@gnu.org; Fri, 30 Jun 2023 05:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFAWr-0004gY-UA for guix-patches@gnu.org; Fri, 30 Jun 2023 05:35:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64362] [PATCH 3/3] gnu: Add mc2mt. Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Jun 2023 09:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64362 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64362@debbugs.gnu.org Cc: Liliana Marie Prikler , iyzsong@envs.net Received: via spool by 64362-submit@debbugs.gnu.org id=B64362.168811766617943 (code B ref 64362); Fri, 30 Jun 2023 09:35:01 +0000 Received: (at 64362) by debbugs.gnu.org; 30 Jun 2023 09:34:26 +0000 Received: from localhost ([127.0.0.1]:54543 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFAWH-0004fK-VS for submit@debbugs.gnu.org; Fri, 30 Jun 2023 05:34:26 -0400 Received: from knopi.disroot.org ([178.21.23.139]:57432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFAWE-0004f2-SY for 64362@debbugs.gnu.org; Fri, 30 Jun 2023 05:34:24 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8842144EEB; Fri, 30 Jun 2023 11:34:18 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QLAjC90twr3x; Fri, 30 Jun 2023 11:34:17 +0200 (CEST) Message-ID: <77adeda8-6ab9-19f5-4b47-bed7a9f12a42@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1688117657; bh=vl9eW2/tIyCbrd13KXy05Gz6+pepBUh0Bstp8sxNZjg=; h=Date:From:To:Cc:References:Subject:In-Reply-To; b=mATU25MLAHe6jwbnH+P/CHUZs3j6QtJ5RH9Jnt7O4IEC8w59WmiwrlPEkJKA7erQL 5UgQoK+mXoO/WkDiGO28tmX3xKJSNozrftneNp+9QBm8EvY4bCrrf2p7ZqC0ybVVUo XtQh7SqUpmxKItuOKiJgdbdu/ezYdnSkganpMEVrNqFofDoLSOFr5Jzf0IFWB72nlN 0S2oykAy+lrxmIBUDgvJqpW6OggMOQPOZNAYtVYmPOhb8aa91B8/LtljWs3iLN5WyP HLnxHn9Cfen64DpzshhpzJwfRKW19v5zSo7lVgdGU6gxEwn/4YjPgXdSRdJK2amhlV wM3tVGF4ClXow== Date: Fri, 30 Jun 2023 17:34:13 +0800 MIME-Version: 1.0 Content-Language: en-US References: <6a3d5c55-d481-e3dc-f423-eb7f6c8313b9@disroot.org> <459fc17f-c9ea-c345-99f8-558e544740ed@disroot.org> In-Reply-To: <459fc17f-c9ea-c345-99f8-558e544740ed@disroot.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From 0555ce12cecf1f5244d9ca973a7686b3d9d5bc3d Mon Sep 17 00:00:00 2001 Message-Id: <0555ce12cecf1f5244d9ca973a7686b3d9d5bc3d.1688116740.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Fri, 30 Jun 2023 16:56:23 +0800 Subject: [PATCH 3/3] gnu: Add mc2mt. * gnu/packages/game-development.scm (mc2mt): New variable. --- gnu/packages/game-development.scm | 68 +++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm index 52f8a3787d..6a5656e3f3 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -56,6 +56,7 @@ (define-module (gnu packages game-development) #:use-module (guix utils) #:use-module (guix build-system cmake) #:use-module (guix build-system gnu) + #:use-module (guix build-system pyproject) #:use-module (guix build-system python) #:use-module (guix build-system scons) #:use-module (gnu packages) @@ -1744,6 +1745,73 @@ (define-public ois (home-page "https://github.com/wgois/OIS") (license license:zlib))) +(define-public mc2mt + (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")) + (modules '((guix build utils))) + (snippet + #~(begin + (copy-recursively "mc2mt.py" "mc2mtlib/mc2mt.py") + (substitute* "mc2mtlib/__init__.py" + (("from . import minetest_world" all) + (string-append "from . import mc2mt\n" + all))) + (substitute* "mc2mtlib/argument_parser.py" + (("mineclone2") "mineclone")) + (substitute* "mc2mtlib/mc2mt.py" + (("if __name__ == '__main__':") + "def mc2mt():") + (("(from mc2mtlib import )\\*" all import) + (string-append + import "argument_parser\n" + import "minetest_world\n" + import "blob_writer\n" + import "block_functions\n" + import "block_conversion\n" + import "section_conversion\n\n" + "parse_args = argument_parser.parser.parse_args"))) + (with-output-to-file "MANIFEST.in" + (lambda _ + (format #t + "\ +include mc2mtlib/mods/*.json~%"))) + (with-output-to-file "pyproject.toml" + (lambda _ + (format #t + "\ +[build-system]~@ +requires = ['setuptools']~@ +build-backend = 'setuptools.build_meta'~@ +~@ +[project]~@ +name = 'mc2mt'~@ +version = '0.1'~@ +dependencies = ['anvil-parser']~@ +~@ +[project.scripts]~@ +mc2mt = 'mc2mtlib:mc2mt.mc2mt'~%"))))))) + (build-system pyproject-build-system) + (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. +It can convert worlds from Minecraft 1.9 and later.") + (home-page "https://github.com/listia/mc2mt") + (license license:expat)))) + (define-public mygui (package (name "mygui")