2018-10-17 21:08:42 +02:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, six
|
|
|
|
, eventlet
|
|
|
|
, gevent
|
|
|
|
, nose
|
|
|
|
, mock
|
|
|
|
, coverage
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "kazoo";
|
2019-02-14 08:37:19 +01:00
|
|
|
version = "2.6.1";
|
2018-10-17 21:08:42 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 08:37:19 +01:00
|
|
|
sha256 = "4a73c2c62a7163ca1c4aef82aa042d795560497cc81034f212ef13cc037cc783";
|
2018-10-17 21:08:42 +02: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}";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://kazoo.readthedocs.org";
|
|
|
|
description = "Higher Level Zookeeper Client";
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|