1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 llama-index-agent-openai,
6 llama-index-core,
7 llama-index-llms-openai,
8 poetry-core,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "llama-index-program-openai";
14 version = "0.3.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 pname = "llama_index_program_openai";
21 inherit version;
22 hash = "sha256-YDmmzb/2LGOIwH6CoVf+Lt07vvDFrfKSrYVGv07HW4I=";
23 };
24
25 pythonRelaxDeps = [ "llama-index-agent-openai" ];
26
27 build-system = [ poetry-core ];
28
29 dependencies = [
30 llama-index-agent-openai
31 llama-index-core
32 llama-index-llms-openai
33 ];
34
35 pythonImportsCheck = [ "llama_index.program.openai" ];
36
37 meta = with lib; {
38 description = "LlamaIndex Program Integration for OpenAI";
39 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/program/llama-index-program-openai";
40 license = licenses.mit;
41 maintainers = with maintainers; [ fab ];
42 };
43}