Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 64 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, buildPythonPackage, fetchFromGitHub, anyio, backoff, httpx, idna, langchain, llama-index, openai, packaging, poetry-core, pydantic, requests, wrapt,}:
buildPythonPackage rec { pname = "langfuse"; version = "2.60.7"; pyproject = true;
src = fetchFromGitHub { owner = "langfuse"; repo = "langfuse-python"; tag = "v${version}"; hash = "sha256-8IlqHO46Kzz+ifmIu2y5SxshNv/lpZO74b1KTE2Opk4="; };
build-system = [ poetry-core ];
pythonRelaxDeps = [ "packaging" ];
dependencies = [ anyio backoff httpx idna packaging pydantic requests wrapt ];
optional-dependencies = { langchain = [ langchain ]; llama-index = [ llama-index ]; openai = [ openai ]; };
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/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ natsukium ]; };}