Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
58 lines
1.2 KiB
Nix
58 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
fetchFromGitHub,
|
|
setuptools-scm,
|
|
crc32c,
|
|
lz4,
|
|
python-snappy,
|
|
zstandard,
|
|
botocore,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
xxhash,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "2.2.3";
|
|
pname = "kafka-python-ng";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wbarnha";
|
|
repo = "kafka-python-ng";
|
|
tag = "v${version}";
|
|
hash = "sha256-a2RFiBRh3S2YQBekpwEK74ow8bGlgWCGqSf2vcgYPYk=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
optional-dependencies = {
|
|
crc32c = [ crc32c ];
|
|
lz4 = [ lz4 ];
|
|
snappy = [ python-snappy ];
|
|
zstd = [ zstandard ];
|
|
boto = [ botocore ];
|
|
};
|
|
|
|
pythonImportsCheck = [ "kafka" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-mock
|
|
pytestCheckHook
|
|
xxhash
|
|
]
|
|
++ lib.flatten (builtins.attrValues optional-dependencies);
|
|
|
|
meta = {
|
|
changelog = "https://github.com/wbarnha/kafka-python-ng/releases/tag/v${version}";
|
|
description = "Pure Python client for Apache Kafka";
|
|
homepage = "https://github.com/wbarnha/kafka-python-ng";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|