mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-12 11:37:19 +00:00
Merge pull request #203230 from fabaff/aiokafka-bump
python310Packages.aiokafka: 0.7.2 -> 0.8.0
This commit is contained in:
commit
752676b9d9
@ -1,23 +1,30 @@
|
|||||||
{ lib
|
{ lib
|
||||||
|
, async-timeout
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
|
||||||
, pythonOlder
|
|
||||||
, dataclasses
|
|
||||||
, kafka-python
|
|
||||||
, cython
|
, cython
|
||||||
|
, fetchFromGitHub
|
||||||
|
, gssapi
|
||||||
|
, kafka-python
|
||||||
|
, lz4
|
||||||
|
, packaging
|
||||||
|
, python-snappy
|
||||||
|
, pythonOlder
|
||||||
, zlib
|
, zlib
|
||||||
|
, zstandard
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiokafka";
|
pname = "aiokafka";
|
||||||
version = "0.7.2";
|
version = "0.8.0";
|
||||||
disabled = pythonOlder "3.6";
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aio-libs";
|
owner = "aio-libs";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-D+91k4zVg28qPbWIrvyXi6WtDs1jeJt9jFGsrSBA3cs=";
|
hash = "sha256-g7xUB5RfjG4G7J9Upj3KXKSePa+VDit1Zf8pWHfui1o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -29,20 +36,38 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
async-timeout
|
||||||
kafka-python
|
kafka-python
|
||||||
] ++ lib.optionals (pythonOlder "3.7") [
|
packaging
|
||||||
dataclasses
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# checks require running kafka server
|
passthru.optional-dependencies = {
|
||||||
|
snappy = [
|
||||||
|
python-snappy
|
||||||
|
];
|
||||||
|
lz4 = [
|
||||||
|
lz4
|
||||||
|
];
|
||||||
|
zstd = [
|
||||||
|
zstandard
|
||||||
|
];
|
||||||
|
gssapi = [
|
||||||
|
gssapi
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Checks require running Kafka server
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
pythonImportsCheck = [ "aiokafka" ];
|
pythonImportsCheck = [
|
||||||
|
"aiokafka"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Kafka integration with asyncio";
|
description = "Kafka integration with asyncio";
|
||||||
homepage = "https://aiokafka.readthedocs.org";
|
homepage = "https://aiokafka.readthedocs.org";
|
||||||
|
changelog = "https://github.com/aio-libs/aiokafka/releases/tag/v${version}";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = [ maintainers.costrouc ];
|
maintainers = with maintainers; [ costrouc ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user