1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 llama-index-core,
6 llama-index-llms-openai,
7 llama-index-program-openai,
8 poetry-core,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "llama-index-question-gen-openai";
14 version = "0.3.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 pname = "llama_index_question_gen_openai";
21 inherit version;
22 hash = "sha256-79O0aCMoCOnTR0ZwquqwDkG5D3X1LQyb+/ESB+CWPWI=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [
28 llama-index-core
29 llama-index-llms-openai
30 llama-index-program-openai
31 ];
32
33 # Tests are only available in the mono repo
34 doCheck = false;
35
36 pythonImportsCheck = [ "llama_index.question_gen.openai" ];
37
38 meta = with lib; {
39 description = "LlamaIndex Question Gen Integration for Openai Generator";
40 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/question_gen/llama-index-question-gen-openai";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}