18 buildPythonPackage rec {
23 src = fetchFromGitHub {
25 repo = "langfuse-python";
26 rev = "refs/tags/v${version}";
27 hash = "sha256-uhbCLDjOU13KAJcCXz03IPNICG5ZI16KIShY2sXPkp4=";
30 build-system = [ poetry-core ];
32 pythonRelaxDeps = [ "packaging" ];
44 optional-dependencies = {
45 langchain = [ langchain ];
46 llama-index = [ llama-index ];
50 pythonImportsCheck = [ "langfuse" ];
52 # tests require network access and openai api key
56 description = "Instrument your LLM app with decorators or low-level SDK and get detailed tracing/observability";
57 homepage = "https://github.com/langfuse/langfuse-python";
58 changelog = "https://github.com/langfuse/langfuse-python/releases/tag/${lib.removePrefix "refs/tags/" src.rev}";
59 license = lib.licenses.mit;
60 maintainers = with lib.maintainers; [ natsukium ];