mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 08:04:14 +00:00
45 lines
850 B
Nix
45 lines
850 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, six
|
|
, eventlet
|
|
, gevent
|
|
, nose
|
|
, mock
|
|
, coverage
|
|
, pkgs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "kazoo";
|
|
version = "2.7.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1jvpn1rcnnq3by1y6wlhfl9jynb110xv5lvd0x0ifkld7vfzd0v8";
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
}
|