Unverified Commit 0c9fe110 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

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

parents 105becbc 2aafc119
Loading
Loading
Loading
Loading
+14 −5
Original line number Diff line number Diff line
@@ -11,12 +11,13 @@
  pytestCheckHook,
  six,
  tenacity,
  setuptools,
}:

buildPythonPackage rec {
  pname = "etcd3";
  version = "0.12.0";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "kragniz";
@@ -25,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
@@ -49,10 +58,10 @@ buildPythonPackage rec {

  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 = [ ];
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ moraxyc ];
  };
}
+6 −0
Original line number Diff line number Diff line
@@ -90,6 +90,12 @@ buildPythonPackage rec {
    async-etcd = [ aetcd ];
  };

  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";
  };

  doCheck = pythonOlder "3.12"; # SystemError in protobuf

  nativeCheckInputs = [