diff mbox

[4/4] gnu: Add python-pykafka and python2-pykafka.

Message ID 1465307853-12065-3-git-send-email-iyzsong@gmail.com
State New
Headers show

Commit Message

宋文武 June 7, 2016, 1:57 p.m. UTC
* gnu/packages/python.scm (python-pykafka, python2-pykafka): New variables.
---
 gnu/packages/python.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Comments

Ludovic Courtès June 10, 2016, 12:38 p.m. UTC | #1
宋文武 <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’.
diff mbox

Patch

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