unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH 2/4] gnu: Add python-tabulate and python2-tabulate.
@ 2016-06-07 13:57 宋文武
  2016-06-07 13:57 ` [PATCH 3/4] gnu: Add python-kazoo and python2-kazoo 宋文武
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: 宋文武 @ 2016-06-07 13:57 UTC (permalink / raw)
  To: guix-devel; +Cc: 宋文武

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index dfbf2cc..1a83933 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9009,3 +9009,35 @@ focus on event-based network programming and multiprotocol integration.")
 
 (define-public python2-twisted
   (package-with-python2 python-twisted))
+
+(define-public python-tabulate
+  (package
+    (name "python-tabulate")
+    (version "0.7.5")
+    (source (origin
+             (method url-fetch)
+             (uri (pypi-uri "tabulate" version))
+             (sha256
+              (base32
+               "03l1r7ddd1a0j2snv1yd0hlnghjad3fg1an1jr8936ksv75slwch"))
+             ;; Fix tests
+             (modules '((guix build utils)))
+             (snippet '(substitute* '("test/test_cli.py"
+                                      "test/test_input.py"
+                                      "test/test_output.py"
+                                      "test/test_regression.py")
+                         (("from common") "from nose.tools")))))
+    (build-system python-build-system)
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)
+       ;; For testing
+       ("python-nose" ,python-nose)))
+    (home-page "https://bitbucket.org/astanin/python-tabulate")
+    (synopsis "Pretty-print tabular data")
+    (description
+     "Tabulate is a library and command-line utility to pretty-print tabular
+data in Python.")
+    (license license:expat)))
+
+(define-public python2-tabulate
+  (package-with-python2 python-tabulate))
-- 
2.6.3

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

* [PATCH 3/4] gnu: Add python-kazoo and python2-kazoo.
  2016-06-07 13:57 [PATCH 2/4] gnu: Add python-tabulate and python2-tabulate 宋文武
@ 2016-06-07 13:57 ` 宋文武
  2016-06-10 12:35   ` Ludovic Courtès
  2016-06-07 13:57 ` [PATCH 4/4] gnu: Add python-pykafka and python2-pykafka 宋文武
  2016-06-10 12:31 ` [PATCH 2/4] gnu: Add python-tabulate and python2-tabulate Ludovic Courtès
  2 siblings, 1 reply; 6+ messages in thread
From: 宋文武 @ 2016-06-07 13:57 UTC (permalink / raw)
  To: guix-devel; +Cc: 宋文武

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 1a83933..ca97b4e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9041,3 +9041,29 @@ data in Python.")
 
 (define-public python2-tabulate
   (package-with-python2 python-tabulate))
+
+(define-public python-kazoo
+  (package
+    (name "python-kazoo")
+    (version "2.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "kazoo" version))
+       (sha256
+        (base32
+         "10pb864if9qi2pq9lfb9m8f7z7ss6rml80gf1d9h64lap5crjnjj"))))
+    (build-system python-build-system)
+    (arguments '(#:tests? #f)) ; XXX: needs zookeeper
+    (native-inputs
+     `(("python-setuptools" ,python-setuptools)
+       ("python-six" ,python-six)))
+    (home-page "https://kazoo.readthedocs.org")
+    (synopsis "Higher Level Zookeeper Client")
+    (description
+     "Kazoo is a Python library designed to make working with Zookeeper a more
+hassle-free experience that is less prone to errors.")
+    (license asl2.0)))
+
+(define-public python2-kazoo
+  (package-with-python2 python-kazoo))
-- 
2.6.3

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

* [PATCH 4/4] gnu: Add python-pykafka and python2-pykafka.
  2016-06-07 13:57 [PATCH 2/4] gnu: Add python-tabulate and python2-tabulate 宋文武
  2016-06-07 13:57 ` [PATCH 3/4] gnu: Add python-kazoo and python2-kazoo 宋文武
@ 2016-06-07 13:57 ` 宋文武
  2016-06-10 12:38   ` Ludovic Courtès
  2016-06-10 12:31 ` [PATCH 2/4] gnu: Add python-tabulate and python2-tabulate Ludovic Courtès
  2 siblings, 1 reply; 6+ messages in thread
From: 宋文武 @ 2016-06-07 13:57 UTC (permalink / raw)
  To: guix-devel; +Cc: 宋文武

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

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index ca97b4e..5a2347e 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9067,3 +9067,33 @@ hassle-free experience that is less prone to errors.")
 
 (define-public python2-kazoo
   (package-with-python2 python-kazoo))
+
+(define-public python-pykafka
+  (package
+    (name "python-pykafka")
+    (version "2.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "pykafka" version))
+              (sha256
+               (base32
+                "1id6sr159p6aa13bxcqyr9gln8sqg1l0ddzns5iws8kk5q1p5cfv"))))
+    (build-system python-build-system)
+    (arguments '(#:tests? #f)) ; XXX: needs zookeeper, kafka, etc.
+    (native-inputs
+     `(("python-gevent" ,python-gevent)
+       ("python-kazoo" ,python-kazoo)
+       ("python-setuptools" ,python-setuptools)
+       ("python-tabulate" ,python-tabulate)))
+    (inputs
+     `(("librdkafka" ,librdkafka)))
+    (home-page "https://pykafka.readthedocs.io/")
+    (synopsis "Apache Kafka client for Python")
+    (description
+     "PyKafka is an Apache Kafka client for Python.  It includes Python
+implementations of Kafka producers and consumers, which are optionally backed
+by a C extension built on librdkafka.")
+    (license asl2.0)))
+
+(define-public python2-pykafka
+  (package-with-python2 python-pykafka))
-- 
2.6.3

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

* Re: [PATCH 2/4] gnu: Add python-tabulate and python2-tabulate.
  2016-06-07 13:57 [PATCH 2/4] gnu: Add python-tabulate and python2-tabulate 宋文武
  2016-06-07 13:57 ` [PATCH 3/4] gnu: Add python-kazoo and python2-kazoo 宋文武
  2016-06-07 13:57 ` [PATCH 4/4] gnu: Add python-pykafka and python2-pykafka 宋文武
@ 2016-06-10 12:31 ` Ludovic Courtès
  2 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2016-06-10 12:31 UTC (permalink / raw)
  To: 宋文武; +Cc: guix-devel

宋文武 <iyzsong@gmail.com> skribis:

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

LGTM!

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

* Re: [PATCH 3/4] gnu: Add python-kazoo and python2-kazoo.
  2016-06-07 13:57 ` [PATCH 3/4] gnu: Add python-kazoo and python2-kazoo 宋文武
@ 2016-06-10 12:35   ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2016-06-10 12:35 UTC (permalink / raw)
  To: 宋文武; +Cc: guix-devel

宋文武 <iyzsong@gmail.com> skribis:

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

[...]

> +    (home-page "https://kazoo.readthedocs.org")
> +    (synopsis "Higher Level Zookeeper Client")

Maybe “High-level Zookeeper client library”?

> +    (description
> +     "Kazoo is a Python library designed to make working with Zookeeper a more
> +hassle-free experience that is less prone to errors.")

What about: “Kazoo is a Python client library for the Apache Zookeeper
distributed application service.  It is designed to be easy to use and
to avoid common programming errors.”?

OK with changes along these lines!

Ludo’.

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

* Re: [PATCH 4/4] gnu: Add python-pykafka and python2-pykafka.
  2016-06-07 13:57 ` [PATCH 4/4] gnu: Add python-pykafka and python2-pykafka 宋文武
@ 2016-06-10 12:38   ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2016-06-10 12:38 UTC (permalink / raw)
  To: 宋文武; +Cc: guix-devel

宋文武 <iyzsong@gmail.com> skribis:

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

[...]

> +    (home-page "https://pykafka.readthedocs.io/")
> +    (synopsis "Apache Kafka client for Python")
> +    (description
> +     "PyKafka is an Apache Kafka client for Python.

For this first sentence: “PyKafka is a client for the Apache Kafka
distributed messaging system.”

Otherwise LGTM!

Ludo’.

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

end of thread, other threads:[~2016-06-10 12:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-07 13:57 [PATCH 2/4] gnu: Add python-tabulate and python2-tabulate 宋文武
2016-06-07 13:57 ` [PATCH 3/4] gnu: Add python-kazoo and python2-kazoo 宋文武
2016-06-10 12:35   ` Ludovic Courtès
2016-06-07 13:57 ` [PATCH 4/4] gnu: Add python-pykafka and python2-pykafka 宋文武
2016-06-10 12:38   ` Ludovic Courtès
2016-06-10 12:31 ` [PATCH 2/4] gnu: Add python-tabulate and python2-tabulate Ludovic Courtès

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