pretender: 1.2.0 -> 1.3.0 (#378434)
[NixPkgs.git] / pkgs / development / python-modules / langfuse / default.nix
blob69ce3133d42f8e1d97b58a3e58528c2494c3aafa
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   anyio,
6   backoff,
7   httpx,
8   idna,
9   langchain,
10   llama-index,
11   openai,
12   packaging,
13   poetry-core,
14   pydantic,
15   wrapt,
18 buildPythonPackage rec {
19   pname = "langfuse";
20   version = "2.53.3";
21   pyproject = true;
23   src = fetchFromGitHub {
24     owner = "langfuse";
25     repo = "langfuse-python";
26     tag = "v${version}";
27     hash = "sha256-uhbCLDjOU13KAJcCXz03IPNICG5ZI16KIShY2sXPkp4=";
28   };
30   build-system = [ poetry-core ];
32   pythonRelaxDeps = [ "packaging" ];
34   dependencies = [
35     anyio
36     backoff
37     httpx
38     idna
39     packaging
40     pydantic
41     wrapt
42   ];
44   optional-dependencies = {
45     langchain = [ langchain ];
46     llama-index = [ llama-index ];
47     openai = [ openai ];
48   };
50   pythonImportsCheck = [ "langfuse" ];
52   # tests require network access and openai api key
53   doCheck = false;
55   meta = {
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/v${version}";
59     license = lib.licenses.mit;
60     maintainers = with lib.maintainers; [ natsukium ];
61   };