python3Packages.kafka-python: re-init at 2.3.2 (#441688)

This commit is contained in:
dotlambda
2026-06-16 06:02:35 +00:00
committed by GitHub
4 changed files with 93 additions and 4 deletions
@@ -0,0 +1,84 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
pythonAtLeast,
# build system
setuptools,
# optional dependencies
crc32c,
lz4,
pyperf,
python-snappy,
zstandard,
# test dependencies
pytestCheckHook,
pytest-mock,
pytest-timeout,
xxhash,
}:
buildPythonPackage (finalAttrs: {
pname = "kafka-python";
version = "2.3.2";
pyproject = true;
__structuredAttrs = true;
disabled = pythonAtLeast "3.14";
src = fetchFromGitHub {
owner = "dpkp";
repo = "kafka-python";
tag = finalAttrs.version;
hash = "sha256-FC5ntcRy2iF2sqYVxWg11EcGA5ncpuUuQHOkBG0paog=";
};
build-system = [ setuptools ];
optional-dependencies = {
benchmarks = [ pyperf ];
crc32c = [ crc32c ];
lz4 = [ lz4 ];
snappy = [ python-snappy ];
zstd = [ zstandard ];
};
pythonImportsCheck = [
"kafka"
"kafka.admin"
"kafka.benchmarks"
"kafka.cli"
"kafka.consumer"
"kafka.coordinator"
"kafka.metrics"
"kafka.partitioner"
"kafka.producer"
"kafka.protocol"
"kafka.record"
"kafka.sasl"
"kafka.serializer"
"kafka.vendor"
];
nativeCheckInputs = [
pytest-mock
pytest-timeout
pytestCheckHook
xxhash
]
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
meta = {
changelog = "https://github.com/dpkp/kafka-python/blob/${finalAttrs.src.tag}/CHANGES.md";
description = "Pure Python client for Apache Kafka";
homepage = "https://github.com/dpkp/kafka-python";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
de11n
despsyched
];
};
})
@@ -1,9 +1,13 @@
{
lib,
buildPythonPackage,
fetchFromGitLab,
lib,
# build system
setuptools,
kafka-python-ng,
# dependencies
kafka-python,
port-for,
pytest,
}:
@@ -23,7 +27,7 @@ buildPythonPackage rec {
build-system = [ setuptools ];
dependencies = [
kafka-python-ng
kafka-python
port-for
pytest
];
-1
View File
@@ -301,7 +301,6 @@ mapAliases {
jupyter_core = throw "'jupyter_core' has been renamed to/replaced by 'jupyter-core'"; # Converted to throw 2025-10-29
jupyter_server = throw "'jupyter_server' has been renamed to/replaced by 'jupyter-server'"; # Converted to throw 2025-10-29
jupyterlab_server = throw "'jupyterlab_server' has been renamed to/replaced by 'jupyterlab-server'"; # Converted to throw 2025-10-29
kafka-python = throw "'kafka-python' has been renamed to/replaced by 'kafka-python-ng'"; # Converted to throw 2025-10-29
Kajiki = throw "'Kajiki' has been renamed to/replaced by 'kajiki'"; # Converted to throw 2025-10-29
keepkey-agent = throw "keepkey-agent has been removed because upstream dropped KeepKey support"; # Added 2026-03-11
keepkey_agent = throw "keepkey-agent has been removed because upstream dropped KeepKey support"; # Added 2026-03-11
+2
View File
@@ -8338,6 +8338,8 @@ self: super: with self; {
kaa-metadata = callPackage ../development/python-modules/kaa-metadata { };
kafka-python = callPackage ../development/python-modules/kafka-python { };
kafka-python-ng = callPackage ../development/python-modules/kafka-python-ng { };
kaggle = callPackage ../development/python-modules/kaggle { };