1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 llama-index-core,
7 llama-index-embeddings-openai,
8 llama-index-llms-openai,
9 llama-index-vector-stores-chroma,
10}:
11
12buildPythonPackage rec {
13 pname = "llama-index-cli";
14 version = "0.5.1";
15 pyproject = true;
16
17 src = fetchPypi {
18 pname = "llama_index_cli";
19 inherit version;
20 hash = "sha256-BEYVnYXFbCkCLByDDJiG9nDV9Z1pNDw8Apo7IO2hqdg=";
21 };
22
23 build-system = [ hatchling ];
24
25 dependencies = [
26 llama-index-core
27 llama-index-embeddings-openai
28 llama-index-llms-openai
29 llama-index-vector-stores-chroma
30 ];
31
32 # Tests are only available in the mono repo
33 doCheck = false;
34
35 pythonImportsCheck = [ "llama_index.cli" ];
36
37 meta = with lib; {
38 description = "LlamaIndex CLI";
39 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-cli";
40 license = licenses.mit;
41 maintainers = with maintainers; [ fab ];
42 };
43}