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