python3Packages.grpcio-tools: fix build (#489159)

This commit is contained in:
dotlambda
2026-02-11 17:07:53 +00:00
committed by GitHub
@@ -3,6 +3,7 @@
buildPythonPackage,
fetchPypi,
protobuf,
cython,
grpcio,
setuptools,
}:
@@ -21,6 +22,11 @@ buildPythonPackage rec {
hash = "sha256-Sw3YZWAnQxbhVdklFYJ2+FZFCBkwiLxD4g0/Xf+Vays=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "Cython==3.1.1" Cython
'';
outputs = [
"out"
"dev"
@@ -28,7 +34,10 @@ buildPythonPackage rec {
enableParallelBuilding = true;
build-system = [ setuptools ];
build-system = [
cython
setuptools
];
pythonRelaxDeps = [
"protobuf"