2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro, futures, enum34 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-06-15 15:56:04 +00:00
|
|
|
version = "1.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "confluent-kafka";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-15 15:56:04 +00:00
|
|
|
sha256 = "c2660807e5c1ecd723e280f76918794c3fd84595000c1e8de1f254f5d89a785c";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ enum34 avro futures ]) ;
|
|
|
|
|
|
|
|
# No tests in PyPi Tarball
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|