nixpkgs/pkgs/development/python-modules/kazoo/default.nix
2021-01-25 18:31:47 +01:00

45 lines
840 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, eventlet
, gevent
, nose
, mock
, coverage
, pkgs
}:
buildPythonPackage rec {
pname = "kazoo";
version = "2.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "1zpj5cc8624w6i0pxgcxqkjwbkm4pkrv19d7wh5df3jais32g3jq";
};
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 lib; {
homepage = "https://kazoo.readthedocs.org";
description = "Higher Level Zookeeper Client";
license = licenses.asl20;
};
}