13 buildPythonPackage rec {
14 pname = "grpc-interceptor";
18 disabled = pythonOlder "3.7";
20 src = fetchFromGitHub {
23 rev = "refs/tags/v${version}";
24 hash = "sha256-tTi1X1r7584ZXa12eLp2G/Am8G6Dnd18eE5wF/Lp/EY=";
28 # https://github.com/d5h-foss/grpc-interceptor/pull/44
30 name = "replace-poetry-with-poetry-core.patch";
31 url = "https://github.com/d5h-foss/grpc-interceptor/commit/916cb394acd8dd7abb4f5edcb4e88aee961a32d0.patch";
32 hash = "sha256-W2SF2zyjusTxgvCxBDLpisD03bofzDug1eyd4FLJmKs=";
40 propagatedBuildInputs = [
45 __darwinAllowLocalNetworking = true;
52 pythonImportsCheck = [
57 description = "Simplified gRPC interceptors";
58 homepage = "https://github.com/d5h-foss/grpc-interceptor";
59 changelog = "https://github.com/d5h-foss/grpc-interceptor/releases/tag/v${version}";
61 Simplified Python gRPC interceptors.
63 The Python gRPC package provides service interceptors, but they're a bit
64 hard to use because of their flexibility. The gRPC interceptors don't
65 have direct access to the request and response objects, or the service
66 context. Access to these are often desired, to be able to log data in the
67 request or response, or set status codes on the context.
69 license = licenses.mit;
70 maintainers = with maintainers; [ tomaskala ];