python3Packages.aiokafka: 0.7.0 -> 0.7.1
This commit is contained in:
parent
b096b6d308
commit
7fa4c3141b
@ -1,7 +1,8 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, isPy27
|
, pythonOlder
|
||||||
|
, dataclasses
|
||||||
, kafka-python
|
, kafka-python
|
||||||
, cython
|
, cython
|
||||||
, zlib
|
, zlib
|
||||||
@ -9,15 +10,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiokafka";
|
pname = "aiokafka";
|
||||||
version = "0.7.0";
|
version = "0.7.1";
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
disabled = isPy27;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aio-libs";
|
owner = "aio-libs";
|
||||||
repo = "aiokafka";
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "16pcgv38syqy6sj3w7zx95zgynpd642n3i95dpiw0ivhpqrxxhrf";
|
sha256 = "sha256-D89ppIUliJJMDuCySrZUyN6Rlm01gFskz6ayHmqploc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -30,16 +30,15 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
kafka-python
|
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
|
# checks require running kafka server
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
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";
|
||||||
|
Loading…
Reference in New Issue
Block a user