about summary refs log tree commit diff
path: root/pkgs/development/python-modules/llama-index-cli/default.nix
blob: de4aacdd5adcdc26271b0d9106abb42020022c7d (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
33
34
{ lib
, buildPythonPackage
, fetchFromGitHub
, llama-index-core
, llama-index-embeddings-openai
, llama-index-llms-openai
, llama-index-vector-stores-chroma
, poetry-core
}:

buildPythonPackage rec {
  pname = "llama-index-cli";

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

  pyproject = true;

  sourceRoot = "${src.name}/${pname}";

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    llama-index-core
    llama-index-embeddings-openai
    llama-index-llms-openai
    llama-index-vector-stores-chroma
  ];

  pythonImportsCheck = [
    "llama_index.cli"
  ];
}