9 opentelemetry-instrumentation,
10 opentelemetry-semantic-conventions,
11 opentelemetry-test-utils,
18 inherit (opentelemetry-instrumentation) version src;
19 pname = "opentelemetry-instrumentation-grpc";
22 disabled = pythonOlder "3.8";
26 name = "grpcio-compatibility.patch";
27 url = "https://github.com/open-telemetry/opentelemetry-python-contrib/commit/1c8d8ef5368c15d27c0973ce80787fd94c7b3176.patch";
28 includes = [ "src/opentelemetry/instrumentation/grpc/grpcext/_interceptor.py" ];
30 hash = "sha256-FH/VubT93kwh7nWQyPfECTIayMqWIjQYSEY5TER+4vY=";
34 sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-grpc";
36 build-system = [ hatchling ];
40 opentelemetry-instrumentation
41 opentelemetry-semantic-conventions
45 optional-dependencies = {
46 instruments = [ grpcio ];
50 opentelemetry-test-utils
55 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
56 # RuntimeError: Failed to bind to address
57 "TestOpenTelemetryServerInterceptorUnix"
60 pythonImportsCheck = [ "opentelemetry.instrumentation.grpc" ];
62 __darwinAllowLocalNetworking = true;
64 meta = opentelemetry-instrumentation.meta // {
65 homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-grpc";
66 description = "OpenTelemetry Instrumentation for grpc";