depot/third_party/nixpkgs/pkgs/development/python-modules/confluent-kafka/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

23 lines
715 B
Nix

{ lib, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro ? null, futures ? null, enum34 ? null }:
buildPythonPackage rec {
version = "1.9.2";
pname = "confluent-kafka";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-L7l70l1Da9Wf4HmIWqd6Oi8jz6zpxjWdRwAFNmWEkmI=";
};
buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ enum34 avro futures ]) ;
# No tests in PyPi Tarball
doCheck = false;
meta = with lib; {
description = "Confluent's Apache Kafka client for Python";
homepage = "https://github.com/confluentinc/confluent-kafka-python";
license = licenses.asl20;
maintainers = with maintainers; [ mlieberman85 ];
};
}