19 buildPythonPackage rec {
20 pname = "confluent-kafka";
24 disabled = pythonOlder "3.7";
26 src = fetchFromGitHub {
27 owner = "confluentinc";
28 repo = "confluent-kafka-python";
29 rev = "refs/tags/v${version}";
30 hash = "sha256-b9RTz4wUtDzGkoeB0cp5vbZEBk8jSw2JiXEx6tUuPVw=";
33 buildInputs = [ rdkafka ];
35 build-system = [ setuptools ];
37 optional-dependencies = {
52 schema-registry = [ requests ];
59 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
61 pythonImportsCheck = [ "confluent_kafka" ];
70 description = "Confluent's Apache Kafka client for Python";
71 homepage = "https://github.com/confluentinc/confluent-kafka-python";
72 changelog = "https://github.com/confluentinc/confluent-kafka-python/blob/v${version}/CHANGELOG.md";
73 license = licenses.asl20;
74 maintainers = with maintainers; [ mlieberman85 ];