depot/third_party/nixpkgs/pkgs/development/python-modules/llama-index-agent-openai/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

43 lines
926 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
llama-index-core,
llama-index-llms-openai,
poetry-core,
pythonOlder,
}:
buildPythonPackage rec {
pname = "llama-index-agent-openai";
version = "0.3.4";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "llama_index_agent_openai";
inherit version;
hash = "sha256-gONAjZcSG+vKP6P/0UtRKFhwwcPHPU7gTT0Yz+YEBGY=";
};
pythonRelaxDeps = [ "llama-index-llms-openai" ];
build-system = [
poetry-core
];
dependencies = [
llama-index-core
llama-index-llms-openai
];
pythonImportsCheck = [ "llama_index.agent.openai" ];
meta = with lib; {
description = "LlamaIndex Agent Integration for OpenAI";
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/agent/llama-index-agent-openai";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}