mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
2dba2d7c21
Diff: open-telemetry/opentelemetry-python-contrib@refs/tags/v0.43b0...v0.44b0 Changelog: https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/refs/tags/v0.44b0
61 lines
1.4 KiB
Nix
61 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, hatchling
|
|
, opentelemetry-api
|
|
, opentelemetry-instrumentation
|
|
, opentelemetry-sdk
|
|
, opentelemetry-semantic-conventions
|
|
, opentelemetry-test-utils
|
|
, wrapt
|
|
, pytestCheckHook
|
|
, grpcio
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
inherit (opentelemetry-instrumentation) version src;
|
|
pname = "opentelemetry-instrumentation-grpc";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
sourceRoot = "${opentelemetry-instrumentation.src.name}/instrumentation/opentelemetry-instrumentation-grpc";
|
|
|
|
build-system = [
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
opentelemetry-api
|
|
opentelemetry-instrumentation
|
|
opentelemetry-sdk
|
|
opentelemetry-semantic-conventions
|
|
wrapt
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
instruments = [ grpcio ];
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
opentelemetry-test-utils
|
|
grpcio
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
# RuntimeError: Failed to bind to address
|
|
"TestOpenTelemetryServerInterceptorUnix"
|
|
];
|
|
|
|
pythonImportsCheck = [ "opentelemetry.instrumentation.grpc" ];
|
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
meta = opentelemetry-instrumentation.meta // {
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-grpc";
|
|
description = "OpenTelemetry Instrumentation for grpc";
|
|
};
|
|
}
|