2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-17 20:08:42 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, eventlet
|
|
|
|
, gevent
|
|
|
|
, nose
|
|
|
|
, mock
|
|
|
|
, coverage
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kazoo";
|
2020-07-14 07:54:17 +01:00
|
|
|
version = "2.8.0";
|
2018-10-17 20:08:42 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-14 07:54:17 +01:00
|
|
|
sha256 = "1zpj5cc8624w6i0pxgcxqkjwbkm4pkrv19d7wh5df3jais32g3jq";
|
2018-10-17 20:08:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
buildInputs = [ eventlet gevent nose mock coverage pkgs.openjdk8 ];
|
|
|
|
|
|
|
|
# not really needed
|
|
|
|
preBuild = ''
|
|
|
|
sed -i '/flake8/d' setup.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
sed -i 's/test_unicode_auth/noop/' kazoo/tests/test_client.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
# tests take a long time to run and leave threads hanging
|
|
|
|
doCheck = false;
|
|
|
|
#ZOOKEEPER_PATH = "${pkgs.zookeeper}";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-17 20:08:42 +01:00
|
|
|
homepage = "https://kazoo.readthedocs.org";
|
|
|
|
description = "Higher Level Zookeeper Client";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|