Skip to content

Commit

Permalink
python312Packages.protobuf: propagate pkgs.protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Oct 17, 2024
1 parent 44e2bd2 commit 827c44b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pkgs/development/python-modules/protobuf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
fetchPypi,
lib,
setuptools,
protobuf,
}:

buildPythonPackage rec {
Expand All @@ -17,6 +18,10 @@ buildPythonPackage rec {

build-system = [ setuptools ];

propagatedNativeBuildInputs = [
protobuf
];

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

Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10721,7 +10721,9 @@ self: super: with self; {
};

# Protobuf 5.x
protobuf5 = callPackage ../development/python-modules/protobuf/default.nix { };
protobuf5 = callPackage ../development/python-modules/protobuf/default.nix {
inherit (pkgs) protobuf;
};

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

0 comments on commit 827c44b

Please sign in to comment.