mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 09:34:36 +00:00
python311Packages.langfuse: init at 2.33.1
This commit is contained in:
parent
7c503a8a9d
commit
e823f8a4b1
63
pkgs/development/python-modules/langfuse/default.nix
Normal file
63
pkgs/development/python-modules/langfuse/default.nix
Normal file
@ -0,0 +1,63 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
backoff,
|
||||
httpx,
|
||||
idna,
|
||||
langchain,
|
||||
llama-index,
|
||||
openai,
|
||||
packaging,
|
||||
poetry-core,
|
||||
pydantic,
|
||||
pythonRelaxDepsHook,
|
||||
wrapt,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "langfuse";
|
||||
version = "2.33.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "langfuse";
|
||||
repo = "langfuse-python";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-ZPCL3Xle4qEw2pNIcja252meep26W/RbVEk2suzywYI=";
|
||||
};
|
||||
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
nativeBuildInputs = [ pythonRelaxDepsHook ];
|
||||
|
||||
pythonRelaxDeps = [ "packaging" ];
|
||||
|
||||
dependencies = [
|
||||
backoff
|
||||
httpx
|
||||
idna
|
||||
packaging
|
||||
pydantic
|
||||
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.rev}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
@ -6491,6 +6491,8 @@ self: super: with self; {
|
||||
|
||||
langdetect = callPackage ../development/python-modules/langdetect { };
|
||||
|
||||
langfuse = callPackage ../development/python-modules/langfuse { };
|
||||
|
||||
langid = callPackage ../development/python-modules/langid { };
|
||||
|
||||
langsmith = callPackage ../development/python-modules/langsmith { };
|
||||
|
Loading…
Reference in New Issue
Block a user