python3Packages.openinference-instrumentation-claude-agent-sdk: init at 0.1.6

OpenInference Claude Agent SDK Instrumentation

https://github.com/Arize-ai/openinference
This commit is contained in:
Fabian Affolter
2026-06-16 12:58:30 +02:00
parent e2a645256b
commit 0598a8aa02
2 changed files with 78 additions and 0 deletions
@@ -0,0 +1,74 @@
{
lib,
buildPythonPackage,
claude-agent-sdk,
fetchFromGitHub,
hatchling,
nix-update-script,
openinference-instrumentation,
openinference-semantic-conventions,
opentelemetry-api,
opentelemetry-instrumentation,
opentelemetry-semantic-conventions,
pytest-asyncio,
pytest-timeout,
pytestCheckHook,
pyyaml,
sniffio,
typing-extensions,
wrapt,
}:
buildPythonPackage (finalAttrs: {
pname = "openinference-instrumentation-claude-agent-sdk";
version = "0.1.6";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Arize-ai";
repo = "openinference";
tag = "python-openinference-instrumentation-claude-agent-sdk-v${finalAttrs.version}";
hash = "sha256-wmwqmN/rN521TaXVZfkaRzHPVhANSgKaBVc4rhXgIII=";
};
sourceRoot = "${finalAttrs.src.name}/python/instrumentation/${finalAttrs.pname}";
build-system = [ hatchling ];
dependencies = [
opentelemetry-api
opentelemetry-instrumentation
opentelemetry-semantic-conventions
openinference-semantic-conventions
openinference-instrumentation
typing-extensions
wrapt
];
optional-dependencies = {
instruments = [ claude-agent-sdk ];
};
nativeCheckInputs = [
pytest-asyncio
pytest-timeout
pytestCheckHook
pyyaml
sniffio
]
++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
pythonImportsCheck = [ "openinference.instrumentation.claude_agent_sdk" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "OpenInference Claude Agent SDK Instrumentation";
homepage = "https://github.com/Arize-ai/openinference";
changelog = "https://github.com/Arize-ai/openinference/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})
+4
View File
@@ -11838,6 +11838,10 @@ self: super: with self; {
callPackage ../development/python-modules/openinference-instrumentation
{ };
openinference-instrumentation-claude-agent-sdk =
callPackage ../development/python-modules/openinference-instrumentation-claude-agent-sdk
{ };
openinference-semantic-conventions =
callPackage ../development/python-modules/openinference-semantic-conventions
{ };