blob: 9c6525ffd30b05749ac602fc0f9f3ad05355d4ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{
lib,
buildPythonPackage,
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;
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.concatAttrValues 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 ];
};
}
|