python312Packages.grpcio-testing: refactor
This commit is contained in:
parent
5be59e2a5f
commit
b005277b91
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue