python3Packages.aiokafka: init at 0.5.2

This commit is contained in:
Chris Ostrouchov 2019-12-16 15:25:06 -05:00 committed by Jon
parent 3ad650a14b
commit c68dad170f
2 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, kafka-python
, cython
, zlib
}:
buildPythonPackage rec {
pname = "aiokafka";
version = "0.5.2";
disabled = isPy27;
src = fetchFromGitHub {
owner = "aio-libs";
repo = "aiokafka";
rev = "v${version}";
sha256 = "062kqsq75fi5pbpqf2a8nxm43pxpr6bwplg6bp4nv2a68r850pki";
};
nativeBuildInputs = [
cython
];
buildInputs = [
zlib
];
propagatedBuildInputs = [
kafka-python
];
postPatch = ''
substituteInPlace setup.py \
--replace "kafka-python==1.4.6" "kafka-python"
'';
# checks require running kafka server
doCheck = false;
meta = with lib; {
description = "Kafka integration with asyncio";
homepage = https://aiokafka.readthedocs.org;
license = licenses.asl20;
maintainers = [ maintainers.costrouc ];
};
}

View File

@ -4338,6 +4338,8 @@ in {
aioeventlet = callPackage ../development/python-modules/aioeventlet { };
aiokafka = callPackage ../development/python-modules/aiokafka { };
olefile = callPackage ../development/python-modules/olefile { };
requests-mock = callPackage ../development/python-modules/requests-mock { };