about summary refs log tree commit diff
path: root/pkgs/development/python-modules/confluent-kafka
diff options
context:
space:
mode:
authorMichael Lieberman <mlieberman85@gmail.com>2017-05-17 20:38:48 -0400
committerMichael Lieberman <mlieberman85@gmail.com>2017-05-19 13:58:57 -0400
commitd0d30df4468507fcd87321ffa1b06257c8dfb098 (patch)
tree98284113b581a206fc7b616ef6006662d9530010 /pkgs/development/python-modules/confluent-kafka
parentafec912d81e08339868e0e1e84234e6ed7f6b3fd (diff)
confluent-kafka: init at 0.9.4
Disabled tests for python 3 since the 0.9.4 release has failing tests
when run under python 3.
Diffstat (limited to 'pkgs/development/python-modules/confluent-kafka')
-rw-r--r--pkgs/development/python-modules/confluent-kafka/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/confluent-kafka/default.nix b/pkgs/development/python-modules/confluent-kafka/default.nix
new file mode 100644
index 0000000000000..bd5d8b7dca643
--- /dev/null
+++ b/pkgs/development/python-modules/confluent-kafka/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro}:
+
+buildPythonPackage rec {
+  name = "${pname}-${version}";
+  version = "0.9.4";
+  pname = "confluent-kafka";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1v8apw9f8l01ql42jg1sfqv41yxvcbxn1a3ar01y0ni428swq6wk";
+  };
+
+  buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ avro ]) ;
+
+  # Tests fail for python3 under this pypi release
+  doCheck = if isPy3k then false else true;
+
+  meta = with stdenv.lib; {
+    description = "Confluent's Apache Kafka client for Python";
+    homepage = "https://github.com/confluentinc/confluent-kafka-python";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ mlieberman85 ];
+  };
+}