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