17 buildPythonPackage rec {
19 pname = "kafka-python-ng";
22 disabled = pythonOlder "3.8";
24 src = fetchFromGitHub {
26 repo = "kafka-python-ng";
28 hash = "sha256-a2RFiBRh3S2YQBekpwEK74ow8bGlgWCGqSf2vcgYPYk=";
31 build-system = [ setuptools-scm ];
33 optional-dependencies = {
36 snappy = [ python-snappy ];
41 pythonImportsCheck = [ "kafka" ];
47 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
50 changelog = "https://github.com/wbarnha/kafka-python-ng/releases/tag/v${version}";
51 description = "Pure Python client for Apache Kafka";
52 homepage = "https://github.com/wbarnha/kafka-python-ng";
53 license = lib.licenses.asl20;
54 maintainers = with lib.maintainers; [ dotlambda ];