2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
etcd,
|
|
|
|
fetchFromGitHub,
|
|
|
|
grpcio,
|
|
|
|
hypothesis,
|
|
|
|
mock,
|
|
|
|
pifpaf,
|
|
|
|
protobuf,
|
|
|
|
pytestCheckHook,
|
|
|
|
six,
|
|
|
|
tenacity,
|
2023-03-15 16:39:30 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "etcd3";
|
|
|
|
version = "0.12.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kragniz";
|
|
|
|
repo = "python-etcd3";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-YM72+fkCDYXl6DORJa/O0sqXqHDWQcFLv2ifQ9kEHBo=";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
grpcio
|
|
|
|
protobuf
|
|
|
|
six
|
|
|
|
tenacity
|
|
|
|
];
|
|
|
|
|
|
|
|
# various failures and incompatible with newer hypothesis versions
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
etcd
|
|
|
|
hypothesis
|
|
|
|
mock
|
|
|
|
pifpaf
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
pifpaf -e PYTHON run etcd --cluster
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "etcd3" ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python client for the etcd API v3";
|
|
|
|
homepage = "https://github.com/kragniz/python-etcd3";
|
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2023-03-15 16:39:30 +00:00
|
|
|
};
|
|
|
|
}
|