2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro, futures, enum34 }:
|
2017-05-18 01:38:48 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-02-05 23:04:43 +00:00
|
|
|
version = "1.6.0";
|
2017-05-18 01:38:48 +01:00
|
|
|
pname = "confluent-kafka";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-05 23:04:43 +00:00
|
|
|
sha256 = "8a9caabdb02e87cd65c7f10f689ba3f1a15f8774de455e96fa5fc56eecfee63c";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|