summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2016-06-07 21:54:06 +0800
committer宋文武 <iyzsong@gmail.com>2016-06-11 12:53:09 +0800
commit45dda35eed09b1f565757ec77781731ca96dd8aa (patch)
tree44874fab3be37055e2ba941a1165eb09ed00ac58 /gnu/packages
parent1c4c8a33d7a6ab166559ea281b7f96c2e04bebc7 (diff)
downloadguix-45dda35eed09b1f565757ec77781731ca96dd8aa.tar.gz
gnu: Add python-pykafka and python2-pykafka.
* gnu/packages/python.scm (python-pykafka, python2-pykafka): New variables.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/python.scm30
1 files changed, 30 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index acdf4b31b7..b2d27efa46 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -9096,3 +9096,33 @@ programming 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 a client for the Apache Kafka distributed messaging system.
+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))