2017-05-18 00:38:48 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
2017-08-24 17:34:20 +00:00
|
|
|
version = "0.11.0";
|
2017-05-18 00:38:48 +00:00
|
|
|
pname = "confluent-kafka";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-08-24 17:34:20 +00:00
|
|
|
sha256 = "4c34bfe8f823ee3777d93820ec6578365d2bde3cd1302cbd0e44c86b68643667";
|
2017-05-18 00:38:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ avro ]) ;
|
|
|
|
|
|
|
|
# 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 20:03:30 +00:00
|
|
|
homepage = https://github.com/confluentinc/confluent-kafka-python;
|
2017-05-18 00:38:48 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mlieberman85 ];
|
|
|
|
};
|
|
|
|
}
|