From badaebad24ca3306dc8675d6bff6358e9b7df647 Mon Sep 17 00:00:00 2001 From: natsukium Date: Sat, 21 Sep 2024 15:17:46 +0900 Subject: [PATCH] python312Packages.confluent-kafka: build with pypaBuildHook --- .../python-modules/confluent-kafka/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/confluent-kafka/default.nix b/pkgs/development/python-modules/confluent-kafka/default.nix index e078836c91216..ecdcd5759349b 100644 --- a/pkgs/development/python-modules/confluent-kafka/default.nix +++ b/pkgs/development/python-modules/confluent-kafka/default.nix @@ -13,12 +13,13 @@ rdkafka, requests, requests-mock, + setuptools, }: buildPythonPackage rec { pname = "confluent-kafka"; version = "2.5.3"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -31,18 +32,24 @@ buildPythonPackage rec { buildInputs = [ rdkafka ]; - propagatedBuildInputs = [ requests ]; + build-system = [ setuptools ]; optional-dependencies = { avro = [ avro fastavro + requests ]; json = [ jsonschema pyrsistent + requests ]; - protobuf = [ protobuf ]; + protobuf = [ + protobuf + requests + ]; + schema-registry = [ requests ]; }; nativeCheckInputs = [