2018-09-08 20:32:04 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro, futures}:
|
2017-05-18 01:38:48 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-07-22 11:06:52 +01:00
|
|
|
version = "0.11.5";
|
2017-05-18 01:38:48 +01:00
|
|
|
pname = "confluent-kafka";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-07-22 11:06:52 +01:00
|
|
|
sha256 = "bfb5807bfb5effd74f2cfe65e4e3e8564a9e72b25e099f655d8ad0d362a63b9f";
|
2017-05-18 01:38:48 +01:00
|
|
|
};
|
|
|
|
|
2018-09-08 20:32:04 +01:00
|
|
|
buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ avro futures ]) ;
|
2017-05-18 01:38:48 +01:00
|
|
|
|
|
|
|
# Tests fail for python3 under this pypi release
|
|
|
|
doCheck = if isPy3k then false else true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Confluent's Apache Kafka client for Python";
|
2017-08-01 21:03:30 +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 ];
|
|
|
|
};
|
|
|
|
}
|