diff options
Diffstat (limited to 'pkgs/development/python-modules/etcd3/default.nix')
-rw-r--r-- | pkgs/development/python-modules/etcd3/default.nix | 48 |
1 files changed, 28 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/etcd3/default.nix b/pkgs/development/python-modules/etcd3/default.nix index 494f70ddf4da..366306d6302c 100644 --- a/pkgs/development/python-modules/etcd3/default.nix +++ b/pkgs/development/python-modules/etcd3/default.nix @@ -1,21 +1,23 @@ -{ lib -, buildPythonPackage -, etcd -, fetchFromGitHub -, grpcio -, hypothesis -, mock -, pifpaf -, protobuf -, pytestCheckHook -, six -, tenacity +{ + lib, + buildPythonPackage, + etcd, + fetchFromGitHub, + grpcio, + hypothesis, + mock, + pifpaf, + protobuf, + pytestCheckHook, + six, + tenacity, + setuptools, }: buildPythonPackage rec { pname = "etcd3"; version = "0.12.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "kragniz"; @@ -24,7 +26,15 @@ buildPythonPackage rec { hash = "sha256-YM72+fkCDYXl6DORJa/O0sqXqHDWQcFLv2ifQ9kEHBo="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + env = { + # make protobuf compatible with old versions + # https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates + PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python"; + }; + + dependencies = [ grpcio protobuf six @@ -46,14 +56,12 @@ buildPythonPackage rec { pifpaf -e PYTHON run etcd --cluster ''; - pythonImportsCheck = [ - "etcd3" - ]; + pythonImportsCheck = [ "etcd3" ]; - meta = with lib; { + meta = { description = "Python client for the etcd API v3"; homepage = "https://github.com/kragniz/python-etcd3"; - license = licenses.asl20; - maintainers = with maintainers; [ ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ moraxyc ]; }; } |