diff --git a/pkgs/development/python-modules/confluent-kafka/default.nix b/pkgs/development/python-modules/confluent-kafka/default.nix new file mode 100644 index 000000000000..bd5d8b7dca64 --- /dev/null +++ b/pkgs/development/python-modules/confluent-kafka/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k, rdkafka, requests, avro3k, avro}: + +buildPythonPackage rec { + name = "${pname}-${version}"; + version = "0.9.4"; + pname = "confluent-kafka"; + + src = fetchPypi { + inherit pname version; + sha256 = "1v8apw9f8l01ql42jg1sfqv41yxvcbxn1a3ar01y0ni428swq6wk"; + }; + + buildInputs = [ rdkafka requests ] ++ (if isPy3k then [ avro3k ] else [ avro ]) ; + + # Tests fail for python3 under this pypi release + doCheck = if isPy3k then false else true; + + 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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1516ccaa94f5..f604081536ce 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4071,6 +4071,8 @@ in { }; }; + confluent-kafka = callPackage ../development/python-modules/confluent-kafka {}; + construct = buildPythonPackage rec { name = "construct-${version}";