unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* bug#26867: [PATCH] gnu: Add python-tmx.
@ 2017-05-10 17:20 Kei Kebreau
  2017-05-10 20:17 ` Marius Bakke
  0 siblings, 1 reply; 3+ messages in thread
From: Kei Kebreau @ 2017-05-10 17:20 UTC (permalink / raw)
  To: 26867; +Cc: Kei Kebreau

* gnu/packages/game-development.scm (python-tmx, python2-tmx): New
variables.
---
 gnu/packages/game-development.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index e47b556c0..c95afe231 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -214,6 +214,38 @@ possible, and it also makes the SGE easy to learn.")
 (define-public python2-sge-pygame
   (package-with-python2 python-sge-pygame))
 
+(define-public python-tmx
+  (package
+    (name "python-tmx")
+    (version "1.9.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "mirror://savannah/python-tmx/tmx-"
+                           version ".tar.gz"))
+       (sha256
+        (base32
+         "1is107sx3lr09dqjiyn10xqhyv5x54c2ryhys9mb9j3mxjbm227l"))))
+    (build-system python-build-system)
+    (propagated-inputs
+     `(("python-six" ,python-six)))
+    (home-page "http://python-tmx.nongnu.org")
+    (synopsis "Python library for the @code{Tiled} TMX format")
+    (description
+     "Python TMX read and writes the @code{Tiled} TMX format in a simple way.
+This is useful for map editors or generic level editors, and it's also useful
+for using a map editor or generic level editor like Tiled to edit your game's
+levels.")
+    (license license:asl2.0)))
+
+(define-public python2-tmx
+  (let ((python2-tmx (package-with-python2 python-tmx)))
+    (package
+      (inherit python2-tmx)
+      (propagated-inputs
+       `(("python2-pathlib" ,python2-pathlib)
+         ,@(package-propagated-inputs python2-tmx))))))
+
 (define-public tiled
   (package
     (name "tiled")
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#26867: [PATCH] gnu: Add python-tmx.
  2017-05-10 17:20 bug#26867: [PATCH] gnu: Add python-tmx Kei Kebreau
@ 2017-05-10 20:17 ` Marius Bakke
  2017-05-11  0:06   ` Kei Kebreau
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Bakke @ 2017-05-10 20:17 UTC (permalink / raw)
  To: Kei Kebreau, 26867

[-- Attachment #1: Type: text/plain, Size: 382 bytes --]

Kei Kebreau <kei@openmailbox.org> writes:

> * gnu/packages/game-development.scm (python-tmx, python2-tmx): New
> variables.

[...]

> +    (license license:asl2.0)))

It looks like the documentation is CC0/public-domain. It should be
listed here if it is part of the installed package (but does not hurt to
mention it here regardless).

LGTM otherwise, thanks for packaging these!

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#26867: [PATCH] gnu: Add python-tmx.
  2017-05-10 20:17 ` Marius Bakke
@ 2017-05-11  0:06   ` Kei Kebreau
  0 siblings, 0 replies; 3+ messages in thread
From: Kei Kebreau @ 2017-05-11  0:06 UTC (permalink / raw)
  To: Marius Bakke; +Cc: 26867-done

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

Marius Bakke <mbakke@fastmail.com> writes:

> Kei Kebreau <kei@openmailbox.org> writes:
>
>> * gnu/packages/game-development.scm (python-tmx, python2-tmx): New
>> variables.
>
> [...]
>
>> +    (license license:asl2.0)))
>
> It looks like the documentation is CC0/public-domain. It should be
> listed here if it is part of the installed package (but does not hurt to
> mention it here regardless).
>
> LGTM otherwise, thanks for packaging these!

Thanks again for the review! Pushed as
1b775fd1df9e4c4f96e9acdf5485d04a74730153.

P.S. python-sge-pygame hash should have been
45f8e7f75e5401eb05bf98383ee169f6b7f06851.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-05-11  0:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-10 17:20 bug#26867: [PATCH] gnu: Add python-tmx Kei Kebreau
2017-05-10 20:17 ` Marius Bakke
2017-05-11  0:06   ` Kei Kebreau

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).