2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2022-12-02 08:20:57 +00:00
|
|
|
, async-timeout
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2022-12-02 08:20:57 +00:00
|
|
|
, cython
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
2022-12-02 08:20:57 +00:00
|
|
|
, gssapi
|
2020-04-24 23:36:52 +00:00
|
|
|
, kafka-python
|
2022-12-02 08:20:57 +00:00
|
|
|
, lz4
|
|
|
|
, packaging
|
|
|
|
, python-snappy
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, zlib
|
2022-12-02 08:20:57 +00:00
|
|
|
, zstandard
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiokafka";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.8.1";
|
2022-12-02 08:20:57 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aio-libs";
|
2021-06-06 07:54:09 +00:00
|
|
|
repo = pname;
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-O5cDP0PWFrxNSdwWqUUkErUKf1Tt9agKJqWIjd4jGqk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cython
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
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
|
|
|
];
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
snappy = [
|
|
|
|
python-snappy
|
|
|
|
];
|
|
|
|
lz4 = [
|
|
|
|
lz4
|
|
|
|
];
|
|
|
|
zstd = [
|
|
|
|
zstandard
|
|
|
|
];
|
|
|
|
gssapi = [
|
|
|
|
gssapi
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Checks require running Kafka server
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-12-02 08:20:57 +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;
|
2022-12-02 08:20:57 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|