depot/third_party/nixpkgs/pkgs/development/python-modules/kazoo/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

52 lines
904 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
six,
eventlet,
gevent,
pynose,
mock,
coverage,
pkgs,
}:
buildPythonPackage rec {
pname = "kazoo";
version = "2.10.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-kFeWrk9MEr1OSukubl0BhDnmtWyM+7JIJTYuebIw2rE=";
};
propagatedBuildInputs = [ six ];
buildInputs = [
eventlet
gevent
pynose
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;
};
}