Merge pull request #203230 from fabaff/aiokafka-bump

python310Packages.aiokafka: 0.7.2 -> 0.8.0
This commit is contained in:
Fabian Affolter 2022-11-27 16:13:33 +01:00 committed by GitHub
commit 752676b9d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1,30 @@
{ lib
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, dataclasses
, kafka-python
, cython
, fetchFromGitHub
, gssapi
, kafka-python
, lz4
, packaging
, python-snappy
, pythonOlder
, zlib
, zstandard
}:
buildPythonPackage rec {
pname = "aiokafka";
version = "0.7.2";
disabled = pythonOlder "3.6";
version = "0.8.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aio-libs";
repo = pname;
rev = "v${version}";
sha256 = "sha256-D+91k4zVg28qPbWIrvyXi6WtDs1jeJt9jFGsrSBA3cs=";
rev = "refs/tags/v${version}";
hash = "sha256-g7xUB5RfjG4G7J9Upj3KXKSePa+VDit1Zf8pWHfui1o=";
};
nativeBuildInputs = [
@ -29,20 +36,38 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
async-timeout
kafka-python
] ++ lib.optionals (pythonOlder "3.7") [
dataclasses
packaging
];
# checks require running kafka server
passthru.optional-dependencies = {
snappy = [
python-snappy
];
lz4 = [
lz4
];
zstd = [
zstandard
];
gssapi = [
gssapi
];
};
# Checks require running Kafka server
doCheck = false;
pythonImportsCheck = [ "aiokafka" ];
pythonImportsCheck = [
"aiokafka"
];
meta = with lib; {
description = "Kafka integration with asyncio";
homepage = "https://aiokafka.readthedocs.org";
changelog = "https://github.com/aio-libs/aiokafka/releases/tag/v${version}";
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
maintainers = with maintainers; [ costrouc ];
};
}