From b005277b9190cd54098639d6a8533d9437f3cf8e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 10 Mar 2024 21:40:48 +0100 Subject: [PATCH] python312Packages.grpcio-testing: refactor --- .../python-modules/grpcio-testing/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/grpcio-testing/default.nix b/pkgs/development/python-modules/grpcio-testing/default.nix index a5696d3fc73c..c5cdf76a5ef6 100644 --- a/pkgs/development/python-modules/grpcio-testing/default.nix +++ b/pkgs/development/python-modules/grpcio-testing/default.nix @@ -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