45 lines
991 B
Nix
45 lines
991 B
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchPypi,
|
||
|
llama-index-agent-openai,
|
||
|
llama-index-core,
|
||
|
llama-index-llms-openai,
|
||
|
poetry-core,
|
||
|
pythonOlder,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "llama-index-program-openai";
|
||
|
version = "0.2.0";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.8";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
pname = "llama_index_program_openai";
|
||
|
inherit version;
|
||
|
hash = "sha256-QTmTVUHAESV/v+uWYrO/Eje3Ke9LHI9N31tnidI3SsQ=";
|
||
|
};
|
||
|
|
||
|
pythonRelaxDeps = [ "llama-index-agent-openai" ];
|
||
|
|
||
|
build-system = [ poetry-core ];
|
||
|
|
||
|
|
||
|
dependencies = [
|
||
|
llama-index-agent-openai
|
||
|
llama-index-core
|
||
|
llama-index-llms-openai
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "llama_index.program.openai" ];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "LlamaIndex Program Integration for OpenAI";
|
||
|
homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/program/llama-index-program-openai";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ fab ];
|
||
|
};
|
||
|
}
|