Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 23 lines 735 B view raw
1{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro, futures}: 2 3buildPythonPackage rec { 4 version = "0.11.6"; 5 pname = "confluent-kafka"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "1dvzlafgr4g0n7382s5bgbls3f9wrgr0yxd70yyxl59wddwzfii7"; 10 }; 11 12 buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ avro futures ]) ; 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}