Commit 70cfa4fe authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

protobuf_30: init at 30.0

parent bcf07bec
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{ callPackage, ... }@args:

callPackage ./generic.nix (
  {
    version = "30.0";
    hash = "sha256-DJhShzuyR7svzxx7hV8INBPFfU4B/0aFCM6foPOINvo=";
  }
  // args
)
+45 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchPypi,
  lib,
  setuptools,
  protobuf,
}:

buildPythonPackage rec {
  pname = "protobuf";
  version = "6.30.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-hStnXSdqfQKPZg2gda8YQcdoYY92uQr3cajiwp5vWWU=";
  };

  build-system = [ setuptools ];

  propagatedNativeBuildInputs = [
    protobuf
  ];

  # the pypi source archive does not ship tests
  doCheck = false;

  pythonImportsCheck = [
    "google.protobuf"
    "google.protobuf.compiler"
    "google.protobuf.internal"
    "google.protobuf.pyext"
    "google.protobuf.testdata"
    "google.protobuf.util"
    "google._upb._message"
  ];

  meta = {
    description = "Protocol Buffers are Google's data interchange format";
    homepage = "https://developers.google.com/protocol-buffers/";
    changelog = "https://github.com/protocolbuffers/protobuf/releases/v${version}";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -10951,6 +10951,7 @@ with pkgs;
  inherit
    ({
      protobuf_30 = callPackage ../development/libraries/protobuf/30.nix { };
      protobuf_29 = callPackage ../development/libraries/protobuf/29.nix { };
      protobuf_28 = callPackage ../development/libraries/protobuf/28.nix { };
      protobuf_27 = callPackage ../development/libraries/protobuf/27.nix { };
@@ -10964,6 +10965,7 @@ with pkgs;
        abseil-cpp = abseil-cpp_202103;
      };
    })
    protobuf_30
    protobuf_29
    protobuf_28
    protobuf_27
+5 −0
Original line number Diff line number Diff line
@@ -11405,6 +11405,11 @@ self: super: with self; {
    inherit (pkgs.__splicedPackages) protobuf;
  };
  # Protobuf 6.x
  protobuf6 = callPackage ../development/python-modules/protobuf/6.nix {
    inherit (pkgs.__splicedPackages) protobuf_30;
  };
  proton-client = callPackage ../development/python-modules/proton-client { };
  proton-core = callPackage ../development/python-modules/proton-core { };