python3Packages.grpcio-tools: fix build

This commit is contained in:
Robert Schütz
2026-02-10 10:07:33 -08:00
parent cfade5b963
commit bf051c4b02
@@ -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"