{ lib, buildPythonPackage, fetchPypi, grpcio, protobuf, setuptools, }: # This package should be updated together with the main grpc package and other # related python grpc packages. # nixpkgs-update: no auto update buildPythonPackage rec { pname = "grpcio-testing"; version = "1.83.0"; pyproject = true; src = fetchPypi { pname = "grpcio_testing"; inherit version; hash = "sha256-/6p6o+ckGsNXDBePfNbpRYEUK1Eh60esk5g+1gfwa90="; }; postPatch = '' substituteInPlace setup.py \ --replace-fail '"grpcio>={version}".format(version=grpc_version.VERSION)' '"grpcio"' ''; build-system = [ setuptools ]; pythonRelaxDeps = [ "protobuf" ]; dependencies = [ grpcio protobuf ]; pythonImportsCheck = [ "grpc_testing" ]; # Module has no tests doCheck = false; meta = { description = "Testing utilities for gRPC Python"; homepage = "https://grpc.io/"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab ]; }; }