python3Packages.aiokafka: 0.7.0 -> 0.7.1
This commit is contained in:
parent
b096b6d308
commit
7fa4c3141b
1 changed files with 10 additions and 11 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue