2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro, futures, enum34 }:
|
2017-05-18 01:38:48 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-08-16 18:30:55 +01:00
|
|
|
version = "1.5.0";
|
2017-05-18 01:38:48 +01:00
|
|
|
pname = "confluent-kafka";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-08-16 18:30:55 +01:00
|
|
|
sha256 = "9ac812006000887f76c95b8a33a9f0b65845bf072fbc54a42a1acffd34e41120";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|