2021-03-24 16:45:56 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro ? null, futures ? null, enum34 ? null }:
|
2017-05-18 01:38:48 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-06-18 22:47:12 +01:00
|
|
|
version = "1.7.0";
|
2017-05-18 01:38:48 +01:00
|
|
|
pname = "confluent-kafka";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-18 22:47:12 +01:00
|
|
|
sha256 = "80e01b4791513c27eded8517af847530dfdf04c43d99ff132ed9c3085933b75b";
|
2017-05-18 01:38:48 +01:00
|
|
|
};
|
|
|
|
|
2019-04-15 23:55:24 +01:00
|
|
|
buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ enum34 avro futures ]) ;
|
2017-05-18 01:38:48 +01:00
|
|
|
|
2019-04-15 23:55:24 +01:00
|
|
|
# No tests in PyPi Tarball
|
|
|
|
doCheck = false;
|
2017-05-18 01:38:48 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-05-18 01:38:48 +01:00
|
|
|
description = "Confluent's Apache Kafka client for Python";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/confluentinc/confluent-kafka-python";
|
2017-05-18 01:38:48 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mlieberman85 ];
|
|
|
|
};
|
|
|
|
}
|