Skip to content

Commit

Permalink
protobuf: protobuf_25 -> protobuf_28 (#338885)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Sep 7, 2024
2 parents c35ab72 + 8f4eb77 commit f4baf46
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pkgs/applications/misc/ola/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
python3
];
propagatedBuildInputs = [
(python3.pkgs.protobuf.override { protobuf = protobuf; })
(python3.pkgs.protobuf4.override { protobuf = protobuf; })
python3.pkgs.numpy
];

Expand Down
11 changes: 6 additions & 5 deletions pkgs/development/libraries/protobuf/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
, grpc
, enableShared ? !stdenv.hostPlatform.isStatic

, testers
, protobuf
, ...
}:

Expand All @@ -28,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "protocolbuffers";
repo = "protobuf";
rev = "v${version}";
rev = "refs/tags/v${version}";
inherit hash;
};

Expand Down Expand Up @@ -89,10 +91,9 @@ stdenv.mkDerivation (finalAttrs: {

passthru = {
tests = {
pythonProtobuf = python3.pkgs.protobuf.override (_: {
protobuf = finalAttrs.finalPackage;
});
pythonProtobuf = python3.pkgs.protobuf;
inherit grpc;
version = testers.testVersion { package = protobuf; };
};

inherit abseil-cpp;
Expand All @@ -108,7 +109,7 @@ stdenv.mkDerivation (finalAttrs: {
license = lib.licenses.bsd3;
platforms = lib.platforms.all;
homepage = "https://protobuf.dev/";
maintainers = [ ];
maintainers = with lib.maintainers; [ GaetanLepage ];
mainProgram = "protoc";
};
})
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ stdenv.mkDerivation rec {
propagatedBuildInputs = [
abseil-cpp
protobuf
(python.pkgs.protobuf.override { protobuf = protobuf; })
(python.pkgs.protobuf4.override { protobuf = protobuf; })
python.pkgs.numpy
];
nativeCheckInputs = [
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23104,7 +23104,7 @@ with pkgs;

prospector = callPackage ../development/tools/prospector { };

protobuf = protobuf_25;
protobuf = protobuf_28;

inherit
({
Expand Down
4 changes: 2 additions & 2 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10577,7 +10577,7 @@ self: super: with self; {
protobuf5 = callPackage ../development/python-modules/protobuf/default.nix { };

# If a protobuf upgrade causes many Python packages to fail, please pin it here to the previous version.
protobuf = protobuf4;
protobuf = protobuf5;

protobuf3-to-dict = callPackage ../development/python-modules/protobuf3-to-dict { };

Expand Down Expand Up @@ -15229,7 +15229,7 @@ self: super: with self; {
).override {
protobuf = protobufTF;
};
protobuf-pythonTF = self.protobuf.override {
protobuf-pythonTF = self.protobuf4.override {
protobuf = protobufTF;
};
grpcioTF = self.grpcio.override {
Expand Down

0 comments on commit f4baf46

Please sign in to comment.