depot/third_party/nixpkgs/pkgs/development/python-modules/opentelemetry-instrumentation/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

55 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
opentelemetry-api,
opentelemetry-test-utils,
pytestCheckHook,
pythonOlder,
setuptools,
wrapt,
}:
buildPythonPackage rec {
pname = "opentelemetry-instrumentation";
version = "0.47b0";
pyproject = true;
disabled = pythonOlder "3.8";
# To avoid breakage, every package in opentelemetry-python-contrib must inherit this version, src, and meta
src = fetchFromGitHub {
owner = "open-telemetry";
repo = "opentelemetry-python-contrib";
rev = "refs/tags/v${version}";
hash = "sha256-XtJ4u891vI7wDtReoucm+qk3BkKJ+aZrYy7zfxmqfgk=";
};
sourceRoot = "${src.name}/opentelemetry-instrumentation";
build-system = [ hatchling ];
dependencies = [
opentelemetry-api
setuptools
wrapt
];
nativeCheckInputs = [
opentelemetry-test-utils
pytestCheckHook
];
pythonImportsCheck = [ "opentelemetry.instrumentation" ];
passthru.updateScript = opentelemetry-api.updateScript;
meta = with lib; {
description = "Instrumentation Tools & Auto Instrumentation for OpenTelemetry Python";
homepage = "https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/opentelemetry-instrumentation";
changelog = "https://github.com/open-telemetry/opentelemetry-python-contrib/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
license = licenses.asl20;
maintainers = teams.deshaw.members ++ [ maintainers.natsukium ];
};
}