17 buildPythonPackage rec {
22 src = fetchFromGitHub {
24 repo = "python-etcd3";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-YM72+fkCDYXl6DORJa/O0sqXqHDWQcFLv2ifQ9kEHBo=";
29 build-system = [ setuptools ];
32 # make protobuf compatible with old versions
33 # https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
34 PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python";
44 # various failures and incompatible with newer hypothesis versions
56 pifpaf -e PYTHON run etcd --cluster
59 pythonImportsCheck = [ "etcd3" ];
62 description = "Python client for the etcd API v3";
63 homepage = "https://github.com/kragniz/python-etcd3";
64 license = lib.licenses.asl20;
65 maintainers = with lib.maintainers; [ moraxyc ];