Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro ? null, futures ? null, enum34 ? null }: 2 3buildPythonPackage rec { 4 version = "2.0.2"; 5 pname = "confluent-kafka"; 6 7 src = fetchPypi { 8 inherit pname version; 9 hash = "sha256-OzQupCJu0QXKi8A1sId+TcLxFf/adOOjUPNjaDNWUVs="; 10 }; 11 12 buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ enum34 avro futures ]) ; 13 14 # No tests in PyPi Tarball 15 doCheck = false; 16 17 meta = with 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}