mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-07 22:03:37 +00:00
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.
54 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
})
|