Merge pull request #125708 from fabaff/bump-aiokafka

This commit is contained in:
Sandro 2021-06-05 20:41:05 +02:00 committed by GitHub
commit 81e982a7ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,8 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pythonOlder
, dataclasses
, kafka-python
, cython
, zlib
@ -9,15 +10,14 @@
buildPythonPackage rec {
pname = "aiokafka";
version = "0.7.0";
disabled = isPy27;
version = "0.7.1";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "aio-libs";
repo = "aiokafka";
repo = pname;
rev = "v${version}";
sha256 = "16pcgv38syqy6sj3w7zx95zgynpd642n3i95dpiw0ivhpqrxxhrf";
sha256 = "sha256-D89ppIUliJJMDuCySrZUyN6Rlm01gFskz6ayHmqploc=";
};
nativeBuildInputs = [
@ -30,16 +30,15 @@ buildPythonPackage rec {
propagatedBuildInputs = [
kafka-python
] ++ lib.optionals (pythonOlder "3.7") [
dataclasses
];
postPatch = ''
substituteInPlace setup.py \
--replace "kafka-python==1.4.6" "kafka-python"
'';
# checks require running kafka server
doCheck = false;
pythonImportsCheck = [ "aiokafka" ];
meta = with lib; {
description = "Kafka integration with asyncio";
homepage = "https://aiokafka.readthedocs.org";