about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/llama-index-question-gen-openai/default.nix
blob: a1dadcd941f848f16c1dbc16bbebe2ce815f90cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, llama-index-llms-openai
, llama-index-program-openai
, poetry-core
}:

buildPythonPackage rec {
  pname = "llama-index-question-gen-openai";

  inherit (llama-index-core) version src meta;

  pyproject = true;

  sourceRoot = "${src.name}/llama-index-integrations/question_gen/${pname}";

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    llama-index-core
    llama-index-llms-openai
    llama-index-program-openai
  ];

  pythonImportsCheck = [
    "llama_index.question_gen.openai"
  ];
}