Unverified Commit 95a7eb35 authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

python312Packages.confluent-kafka: build with pypaBuildHook (#342984)

parents 7fba2cbe badaebad
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -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 = [