python3Packages.protobuf: propagate pkgs.protobuf (#349270)

This commit is contained in:
Vladimír Čunát 2024-10-21 10:59:07 +02:00
commit 8a83a96edb
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 8 additions and 1 deletions

View File

@ -3,6 +3,7 @@
fetchPypi,
lib,
setuptools,
protobuf,
}:
buildPythonPackage rec {
@ -17,6 +18,10 @@ buildPythonPackage rec {
build-system = [ setuptools ];
propagatedNativeBuildInputs = [
protobuf
];
# the pypi source archive does not ship tests
doCheck = false;

View File

@ -10733,7 +10733,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.__splicedPackages) protobuf;
};
# If a protobuf upgrade causes many Python packages to fail, please pin it here to the previous version.
protobuf = protobuf5;