2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2024-04-21 15:54:59 +00:00
|
|
|
, fetchPypi
|
2024-02-29 20:09:43 +00:00
|
|
|
, llama-index-agent-openai
|
|
|
|
, llama-index-core
|
|
|
|
, llama-index-llms-openai
|
|
|
|
, poetry-core
|
2024-04-21 15:54:59 +00:00
|
|
|
, pythonOlder
|
|
|
|
, pythonRelaxDepsHook
|
2024-02-29 20:09:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "llama-index-program-openai";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.1.5";
|
|
|
|
pyproject = true;
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "llama_index_program_openai";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-wzqi0odq0P8fmip1XU59SRckCEfQF057LQuEdEmbtwA=";
|
|
|
|
};
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"llama-index-agent-openai"
|
|
|
|
];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2024-02-29 20:09:43 +00:00
|
|
|
poetry-core
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDepsHook
|
2024-02-29 20:09:43 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2024-02-29 20:09:43 +00:00
|
|
|
llama-index-agent-openai
|
|
|
|
llama-index-core
|
|
|
|
llama-index-llms-openai
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"llama_index.program.openai"
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
2024-02-29 20:09:43 +00:00
|
|
|
}
|