1{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro}: 2 3buildPythonPackage rec { 4 version = "0.11.5"; 5 pname = "confluent-kafka"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "bfb5807bfb5effd74f2cfe65e4e3e8564a9e72b25e099f655d8ad0d362a63b9f"; 10 }; 11 12 buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ avro ]) ; 13 14 # Tests fail for python3 under this pypi release 15 doCheck = if isPy3k then false else true; 16 17 meta = with stdenv.lib; { 18 description = "Confluent's Apache Kafka client for Python"; 19 homepage = https://github.com/confluentinc/confluent-kafka-python; 20 license = licenses.asl20; 21 maintainers = with maintainers; [ mlieberman85 ]; 22 }; 23}