Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / opentelemetry-instrumentation-grpc / default.nix
blob2a2cae6f6de431618904d63770aa9256343491f5
1 { lib
2 , stdenv
3 , buildPythonPackage
4 , pythonOlder
5 , hatchling
6 , opentelemetry-api
7 , opentelemetry-instrumentation
8 , opentelemetry-sdk
9 , opentelemetry-semantic-conventions
10 , opentelemetry-test-utils
11 , wrapt
12 , pytestCheckHook
13 , grpcio
16 buildPythonPackage {
17   inherit (opentelemetry-instrumentation) version src;
18   pname = "opentelemetry-instrumentation-grpc";
19   pyproject = true;
21   disabled = pythonOlder "3.8";
23   sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-grpc";
25   build-system = [
26     hatchling
27   ];
29   dependencies = [
30     opentelemetry-api
31     opentelemetry-instrumentation
32     opentelemetry-sdk
33     opentelemetry-semantic-conventions
34     wrapt
35   ];
37   passthru.optional-dependencies = {
38     instruments = [ grpcio ];
39   };
41   nativeCheckInputs = [
42     opentelemetry-test-utils
43     grpcio
44     pytestCheckHook
45   ];
47   disabledTests = lib.optionals stdenv.isDarwin [
48     # RuntimeError: Failed to bind to address
49     "TestOpenTelemetryServerInterceptorUnix"
50   ];
52   pythonImportsCheck = [ "opentelemetry.instrumentation.grpc" ];
54   __darwinAllowLocalNetworking = true;
56   meta = opentelemetry-instrumentation.meta // {
57     homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-grpc";
58     description = "OpenTelemetry Instrumentation for grpc";
59   };