3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/confluent-kafka/default.nix
2019-10-08 00:56:12 -07:00

24 lines
703 B
Nix

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