Files
Vladimír Čunát 76e2d64904 python3Packages.langfuse: 4.0.1 -> 4.0.2
https://hydra.nixos.org/build/329152878/nixlog/3/tail
https://github.com/langfuse/langfuse-python/releases/tag/v4.0.2

Uh, I don't know.  Feel free to upgrade further, etc.
I wanted to at least unblock the build.
2026-05-20 09:15:08 +02:00

54 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
backoff,
httpx,
opentelemetry-api,
opentelemetry-sdk,
opentelemetry-exporter-otlp,
packaging,
poetry-core,
pydantic,
wrapt,
}:
buildPythonPackage (finalAttrs: {
pname = "langfuse";
version = "4.0.2";
pyproject = true;
src = fetchFromGitHub {
owner = "langfuse";
repo = "langfuse-python";
tag = "v${finalAttrs.version}";
hash = "sha256-BTwCAyqZMic5sOVAXOhhS6H1SBoEePo1fGOt5vLiLUo=";
};
build-system = [ poetry-core ];
dependencies = [
backoff
httpx
opentelemetry-api
opentelemetry-sdk
opentelemetry-exporter-otlp
packaging
pydantic
wrapt
];
pythonImportsCheck = [ "langfuse" ];
# tests require network access and openai api key
doCheck = false;
meta = {
description = "Instrument your LLM app with decorators or low-level SDK and get detailed tracing/observability";
homepage = "https://github.com/langfuse/langfuse-python";
changelog = "https://github.com/langfuse/langfuse-python/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
})