python312Packages.grpcio-testing: refactor

This commit is contained in:
Fabian Affolter 2024-03-10 21:40:48 +01:00 committed by GitHub
parent 5be59e2a5f
commit b005277b91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,12 +5,13 @@
, protobuf
, pythonOlder
, pythonRelaxDepsHook
, setuptools
}:
buildPythonPackage rec {
pname = "grpcio-testing";
version = "1.62.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@ -21,9 +22,13 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py \
--replace '"grpcio>={version}".format(version=grpc_version.VERSION)' '"grpcio"'
--replace-fail '"grpcio>={version}".format(version=grpc_version.VERSION)' '"grpcio"'
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
grpcio
protobuf