13 buildPythonPackage rec {
14 pname = "grpc-interceptor";
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-GJkVCslPXShJNDrqhFtCsAK5+VaG8qFJo0RQTsiMIFY=";
27 nativeBuildInputs = [ poetry-core ];
29 propagatedBuildInputs = [
34 __darwinAllowLocalNetworking = true;
41 pythonImportsCheck = [ "grpc_interceptor" ];
44 description = "Simplified gRPC interceptors";
45 homepage = "https://github.com/d5h-foss/grpc-interceptor";
46 changelog = "https://github.com/d5h-foss/grpc-interceptor/releases/tag/v${version}";
48 Simplified Python gRPC interceptors.
50 The Python gRPC package provides service interceptors, but they're a bit
51 hard to use because of their flexibility. The gRPC interceptors don't
52 have direct access to the request and response objects, or the service
53 context. Access to these are often desired, to be able to log data in the
54 request or response, or set status codes on the context.
56 license = licenses.mit;
57 maintainers = with maintainers; [ tomaskala ];