3
0
Fork 0
forked from mirrors/nixpkgs

confluent-kafka: init at 0.9.4

Disabled tests for python 3 since the 0.9.4 release has failing tests
when run under python 3.
This commit is contained in:
Michael Lieberman 2017-05-17 20:38:48 -04:00
parent afec912d81
commit d0d30df446
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro}:
buildPythonPackage rec {
name = "${pname}-${version}";
version = "0.9.4";
pname = "confluent-kafka";
src = fetchPypi {
inherit pname version;
sha256 = "1v8apw9f8l01ql42jg1sfqv41yxvcbxn1a3ar01y0ni428swq6wk";
};
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";
homepage = "https://github.com/confluentinc/confluent-kafka-python";
license = licenses.asl20;
maintainers = with maintainers; [ mlieberman85 ];
};
}

View file

@ -4071,6 +4071,8 @@ in {
};
};
confluent-kafka = callPackage ../development/python-modules/confluent-kafka {};
construct = buildPythonPackage rec {
name = "construct-${version}";