2019-04-16 00:55:24 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro, futures, enum34 }:
|
2017-05-18 02:38:48 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-04-16 00:55:24 +02:00
|
|
|
version = "1.0.0";
|
2017-05-18 02:38:48 +02:00
|
|
|
pname = "confluent-kafka";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-16 00:55:24 +02:00
|
|
|
sha256 = "a7427944af963410479c2aaae27cc9d28db39c9a93299f14dcf16df80092c63a";
|
2017-05-18 02:38:48 +02:00
|
|
|
};
|
|
|
|
|
2019-04-16 00:55:24 +02:00
|
|
|
buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ enum34 avro futures ]) ;
|
2017-05-18 02:38:48 +02:00
|
|
|
|
2019-04-16 00:55:24 +02:00
|
|
|
# No tests in PyPi Tarball
|
|
|
|
doCheck = false;
|
2017-05-18 02:38:48 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Confluent's Apache Kafka client for Python";
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/confluentinc/confluent-kafka-python;
|
2017-05-18 02:38:48 +02:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mlieberman85 ];
|
|
|
|
};
|
|
|
|
}
|