python312Packages.{etcd3,limits}: fix build (#351570)

authored by Aleksana and committed by GitHub 0c9fe110 105becbc

+20 -5
+14 -5
pkgs/development/python-modules/etcd3/default.nix
··· 11 11 pytestCheckHook, 12 12 six, 13 13 tenacity, 14 + setuptools, 14 15 }: 15 16 16 17 buildPythonPackage rec { 17 18 pname = "etcd3"; 18 19 version = "0.12.0"; 19 - format = "setuptools"; 20 + pyproject = true; 20 21 21 22 src = fetchFromGitHub { 22 23 owner = "kragniz"; ··· 25 26 hash = "sha256-YM72+fkCDYXl6DORJa/O0sqXqHDWQcFLv2ifQ9kEHBo="; 26 27 }; 27 28 28 - propagatedBuildInputs = [ 29 + build-system = [ setuptools ]; 30 + 31 + env = { 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"; 35 + }; 36 + 37 + dependencies = [ 29 38 grpcio 30 39 protobuf 31 40 six ··· 49 58 50 59 pythonImportsCheck = [ "etcd3" ]; 51 60 52 - meta = with lib; { 61 + meta = { 53 62 description = "Python client for the etcd API v3"; 54 63 homepage = "https://github.com/kragniz/python-etcd3"; 55 - license = licenses.asl20; 56 - maintainers = [ ]; 64 + license = lib.licenses.asl20; 65 + maintainers = with lib.maintainers; [ moraxyc ]; 57 66 }; 58 67 }
+6
pkgs/development/python-modules/limits/default.nix
··· 90 90 async-etcd = [ aetcd ]; 91 91 }; 92 92 93 + env = { 94 + # make protobuf compatible with old versions 95 + # https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates 96 + PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION = "python"; 97 + }; 98 + 93 99 doCheck = pythonOlder "3.12"; # SystemError in protobuf 94 100 95 101 nativeCheckInputs = [