unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: Add python-polib
@ 2016-11-25 10:33 Julien Lepiller
  2016-11-25 11:41 ` Hartmut Goebel
  2016-11-26  9:31 ` Marius Bakke
  0 siblings, 2 replies; 4+ messages in thread
From: Julien Lepiller @ 2016-11-25 10:33 UTC (permalink / raw)
  To: guix-devel

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

Hi,

this patch adds python-polib and python2-polib. They are usefull to
manipulate and create gettext files (po, mo, pot).

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-polib.patch --]
[-- Type: text/x-patch, Size: 2185 bytes --]

From dc8e36cf9d1a6c9af8fa870b3ee5db27756e068e Mon Sep 17 00:00:00 2001
From: Julien Lepiller <julien@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@sapientech@openmailbox.org>
 ;;; Copyright © 2016 Alex Vong <alexvong1995@gmail.com>
 ;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2016 Julien Lepiller <julien@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


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

* Re: [PATCH] gnu: Add python-polib
  2016-11-25 10:33 [PATCH] gnu: Add python-polib Julien Lepiller
@ 2016-11-25 11:41 ` Hartmut Goebel
  2016-11-25 14:29   ` Julien Lepiller
  2016-11-26  9:31 ` Marius Bakke
  1 sibling, 1 reply; 4+ messages in thread
From: Hartmut Goebel @ 2016-11-25 11:41 UTC (permalink / raw)
  To: guix-devel

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

Am 25.11.2016 um 11:33 schrieb Julien Lepiller:
> +(define-public python2-polib
> +  (package
> +    (inherit python-polib)
> +    (name "python2-polib")
> +    (arguments `(#:python ,python-2
> +                 #:tests? #f)))) ; they don't exist with python2

Why are you not using package-with-python2 here?

-- 
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP, ISO 27001 Lead Implementer
Information Security Management, Security Governance, Secure Software
Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog:
http://www.goebel-consult.de/blog/vortrag-digitalen-selbstverteidigung-fur-unternehmen

Kolumne:
http://www.cissp-gefluester.de/2012-04-compliance-bringt-keine-sicherheit



[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 2430 bytes --]

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

* Re: [PATCH] gnu: Add python-polib
  2016-11-25 11:41 ` Hartmut Goebel
@ 2016-11-25 14:29   ` Julien Lepiller
  0 siblings, 0 replies; 4+ messages in thread
From: Julien Lepiller @ 2016-11-25 14:29 UTC (permalink / raw)
  To: guix-devel

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

On Fri, 25 Nov 2016 12:41:16 +0100
Hartmut Goebel <h.goebel@goebel-consult.de> wrote:

> Am 25.11.2016 um 11:33 schrieb Julien Lepiller:
> > +(define-public python2-polib
> > +  (package
> > +    (inherit python-polib)
> > +    (name "python2-polib")
> > +    (arguments `(#:python ,python-2
> > +                 #:tests? #f)))) ; they don't exist with python2  
> 
> Why are you not using package-with-python2 here?
I think it's simpler, but here is the same patch with this syntax.



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-python-polib.patch --]
[-- Type: text/x-patch, Size: 2204 bytes --]

From 985a46de48c94af5e23b362340a1264f69336dac Mon Sep 17 00:00:00 2001
From: Julien Lepiller <julien@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 | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 102fb3f..426a2a2 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -31,6 +31,7 @@
 ;;; Copyright © 2016 Dylan Jeffers <sapientech@sapientech@openmailbox.org>
 ;;; Copyright © 2016 Alex Vong <alexvong1995@gmail.com>
 ;;; Copyright © 2016 Arun Isaac <arunisaac@systemreboot.net>
+;;; Copyright © 2016 Julien Lepiller <julien@lepiller.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1426,6 +1427,33 @@ 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
+  (let ((base (package-with-python2 (strip-python2-variant python-polib))))
+    (package
+      (inherit base)
+      (arguments `(,@(package-arguments base)
+                   #:tests? #f)))))
 
 (define-public scons
   (package
-- 
2.10.2


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

* Re: [PATCH] gnu: Add python-polib
  2016-11-25 10:33 [PATCH] gnu: Add python-polib Julien Lepiller
  2016-11-25 11:41 ` Hartmut Goebel
@ 2016-11-26  9:31 ` Marius Bakke
  1 sibling, 0 replies; 4+ messages in thread
From: Marius Bakke @ 2016-11-26  9:31 UTC (permalink / raw)
  To: Julien Lepiller, guix-devel

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

Julien Lepiller <julien@lepiller.eu> writes:

> Hi,
>
> this patch adds python-polib and python2-polib. They are usefull to
> manipulate and create gettext files (po, mo, pot).

Thanks! I changed it to use "pypi-uri", fixed a typo in the description
and reinstated the test comment. Pushed as d3eff97!

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

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

end of thread, other threads:[~2016-11-26  9:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-25 10:33 [PATCH] gnu: Add python-polib Julien Lepiller
2016-11-25 11:41 ` Hartmut Goebel
2016-11-25 14:29   ` Julien Lepiller
2016-11-26  9:31 ` Marius Bakke

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).