2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, hatchling
|
|
|
|
, opentelemetry-api
|
|
|
|
, opentelemetry-test-utils
|
|
|
|
, setuptools
|
|
|
|
, wrapt
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "opentelemetry-instrumentation";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.45b0";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
# to avoid breakage, every package in opentelemetry-python-contrib must inherit this version, src, and meta
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "open-telemetry";
|
|
|
|
repo = "opentelemetry-python-contrib";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-snpanTREdvfqpqPI8UWzm55pDK8Q77guqgT8kFULRKU=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
sourceRoot = "${src.name}/opentelemetry-instrumentation";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2023-07-15 17:15:38 +00:00
|
|
|
hatchling
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-07-15 17:15:38 +00:00
|
|
|
opentelemetry-api
|
|
|
|
setuptools
|
|
|
|
wrapt
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
opentelemetry-test-utils
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "opentelemetry.instrumentation" ];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.updateScript = opentelemetry-api.updateScript;
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/opentelemetry-instrumentation";
|
|
|
|
description = "Instrumentation Tools & Auto Instrumentation for OpenTelemetry Python";
|
2023-08-04 22:07:22 +00:00
|
|
|
changelog = "https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/${src.rev}";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.asl20;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = teams.deshaw.members ++ [ maintainers.natsukium ];
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
}
|