2019-04-15 23:55:24 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro, futures, enum34 }:
|
2017-05-18 01:38:48 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-12-19 19:31:08 +00:00
|
|
|
version = "1.3.0";
|
2017-05-18 01:38:48 +01:00
|
|
|
pname = "confluent-kafka";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-19 19:31:08 +00:00
|
|
|
sha256 = "4025ccddbc79443a4e2342de0d770f669558eb737fca2e7851558cd45f78ef78";
|
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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|