2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
2024-09-19 14:19:46 +00:00
|
|
|
cramjam,
|
2024-06-05 15:53:02 +00:00
|
|
|
cython,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gssapi,
|
|
|
|
packaging,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2024-09-19 14:19:46 +00:00
|
|
|
typing-extensions,
|
2024-06-05 15:53:02 +00:00
|
|
|
zlib,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiokafka";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.11.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aio-libs";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "aiokafka";
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-CeEPRCsf2SFI5J5FuQlCRRtlOPcCtRiGXJUIQOAbyCc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
2020-04-24 23:36:52 +00:00
|
|
|
cython
|
2024-05-15 15:35:15 +00:00
|
|
|
setuptools
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = [ zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-12-02 08:20:57 +00:00
|
|
|
async-timeout
|
|
|
|
packaging
|
2024-09-19 14:19:46 +00:00
|
|
|
typing-extensions
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
optional-dependencies = {
|
2024-09-19 14:19:46 +00:00
|
|
|
snappy = [ cramjam ];
|
|
|
|
lz4 = [ cramjam ];
|
|
|
|
zstd = [ cramjam ];
|
2024-06-05 15:53:02 +00:00
|
|
|
gssapi = [ gssapi ];
|
2024-09-19 14:19:46 +00:00
|
|
|
all = [
|
|
|
|
cramjam
|
|
|
|
gssapi
|
|
|
|
];
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Checks require running Kafka server
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aiokafka" ];
|
2021-06-06 07:54:09 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Kafka integration with asyncio";
|
|
|
|
homepage = "https://aiokafka.readthedocs.org";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/aio-libs/aiokafka/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|