2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
|
|
|
cython,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gssapi,
|
|
|
|
kafka-python,
|
|
|
|
lz4,
|
|
|
|
packaging,
|
|
|
|
python-snappy,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
zlib,
|
|
|
|
zstandard,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiokafka";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.10.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
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-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-G9Q77nWUUW+hG/wm9z/S8gea4U1wHZdj7WdK2LsKBos=";
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
kafka-python
|
2022-12-02 08:20:57 +00:00
|
|
|
packaging
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
snappy = [ python-snappy ];
|
|
|
|
lz4 = [ lz4 ];
|
|
|
|
zstd = [ zstandard ];
|
|
|
|
gssapi = [ 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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|