2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, kazoo
|
|
|
|
, six
|
|
|
|
, testtools
|
2022-09-09 14:08:57 +00:00
|
|
|
, unittestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zake";
|
|
|
|
version = "0.2.2";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1rp4xxy7qp0s0wnq3ig4ji8xsl31g901qkdp339ndxn466cqal2s";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ kazoo six ];
|
|
|
|
buildInputs = [ testtools ];
|
2022-09-09 14:08:57 +00:00
|
|
|
checkInputs = [ unittestCheckHook ];
|
|
|
|
preCheck = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
# Skip test - fails with our new kazoo version
|
|
|
|
substituteInPlace zake/tests/test_client.py \
|
|
|
|
--replace "test_child_watch_no_create" "_test_child_watch_no_create"
|
|
|
|
'';
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
unittestFlagsArray = [ "zake/tests" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/yahoo/Zake";
|
|
|
|
description = "A python package that works to provide a nice set of testing utilities for the kazoo library";
|
|
|
|
license = licenses.asl20;
|
|
|
|
broken = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|