Hi,

this patch adds python-polib and python2-polib. They are usefull to
manipulate and create gettext files (po, mo, pot).
From dc8e36cf9d1a6c9af8fa870b3ee5db27756e068e Mon Sep 17 00:00:00 2001
From: Julien Lepiller <jul...@lepiller.eu>
Date: Thu, 24 Nov 2016 22:42:33 +0100
Subject: [PATCH] gnu: Add python-polib

* gnu/packages/python.scm (python-polib, python2-polib): New variables.
---
 gnu/packages/python.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 102fb3f..ddc8f96 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapient...@openmailbox.org>
 ;;; Copyright © 2016 Alex Vong <alexvong1...@gmail.com>
 ;;; Copyright © 2016 Arun Isaac <arunis...@systemreboot.net>
+;;; Copyright © 2016 Julien Lepiller <jul...@lepiller.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1426,6 +1427,34 @@ backported for previous versions of Python from 2.4 to 3.3.")
 syntax.")
     (license license:x11)))
 
+(define-public python-polib
+  (package
+    (name "python-polib")
+    (version "1.0.8")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://pypi.python.org/packages/fb/64/";
+                                  "ad3dbcc052d92fedd535a80b9866a9334afaf13"
+                                  "6cb5d89a673ac36d16b5a/polib-" version
+                                  ".tar.gz"))
+              (sha256
+                (base32
+                  "1pq2hbm3m2q0cjdszk8mc4qa1vl3wcblh5nfyirlfnzb2pcy7zss"))))
+    (build-system python-build-system)
+    (home-page "https://bitbucket.org/izi/polib/wiki/Home";)
+    (synopsis "Manipulate, create and modify gettext files")
+    (description "Polib can manipulate any gettext format (po, pot and mo
+files).  It can be used to create po files from scratch or to modify
+existing ones.")
+    (license license:expat)))
+
+(define-public python2-polib
+  (package
+    (inherit python-polib)
+    (name "python2-polib")
+    (arguments `(#:python ,python-2
+                 #:tests? #f)))) ; they don't exist with python2
+   
 
 (define-public scons
   (package
-- 
2.10.2

Reply via email to