From 9bee562b8c8a4dbd40bd4e063328db793a95a24f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 16 Jun 2026 12:20:26 +0200 Subject: [PATCH] python3Packages.openinference-semantic-conventions: init at 0.1.30 OpenTelemetry Semantic Conventions for AI Observability https://github.com/Arize-ai/openinference --- .../default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 4 ++ 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/openinference-semantic-conventions/default.nix diff --git a/pkgs/development/python-modules/openinference-semantic-conventions/default.nix b/pkgs/development/python-modules/openinference-semantic-conventions/default.nix new file mode 100644 index 000000000000..a7a129cc1cc3 --- /dev/null +++ b/pkgs/development/python-modules/openinference-semantic-conventions/default.nix @@ -0,0 +1,45 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + hatchling, + nix-update-script, + pytest-asyncio, + pytestCheckHook, +}: + +buildPythonPackage (finalAttrs: { + pname = "openinference-semantic-conventions"; + version = "0.1.30"; + pyproject = true; + + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "Arize-ai"; + repo = "openinference"; + tag = "python-openinference-semantic-conventions-v${finalAttrs.version}"; + hash = "sha256-MkgajZknHOw4/qra6uZ99rtpiylpHhOj8tDfLGUSU74="; + }; + + sourceRoot = "${finalAttrs.src.name}/python/${finalAttrs.pname}"; + + build-system = [ hatchling ]; + + nativeCheckInputs = [ + pytest-asyncio + pytestCheckHook + ]; + + pythonImportsCheck = [ "openinference.semconv" ]; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "OpenTelemetry Semantic Conventions for AI Observability"; + 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 ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb255c8fb62c..d5037dbcb8db 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -11834,6 +11834,10 @@ self: super: with self; { } ); + openinference-semantic-conventions = + callPackage ../development/python-modules/openinference-semantic-conventions + { }; + openmm = toPythonModule ( pkgs.openmm.override { python3Packages = self;