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
|
, protobuf
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, pythonRelaxDepsHook
|
, pythonRelaxDepsHook
|
||||||
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "grpcio-testing";
|
pname = "grpcio-testing";
|
||||||
version = "1.62.1";
|
version = "1.62.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
@ -21,9 +22,13 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
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 = [
|
propagatedBuildInputs = [
|
||||||
grpcio
|
grpcio
|
||||||
protobuf
|
protobuf
|
||||||
|
|
Loading…
Reference in a new issue