1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 hatchling,
6 llama-cloud,
7 llama-index-core,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "llama-index-indices-managed-llama-cloud";
13 version = "0.7.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.8";
17
18 src = fetchPypi {
19 pname = "llama_index_indices_managed_llama_cloud";
20 inherit version;
21 hash = "sha256-+GtifVEN1PvlFEdzTxmBG9ipVcQtUx8jeoVpi50eQUA=";
22 };
23
24 build-system = [ hatchling ];
25
26 dependencies = [
27 llama-cloud
28 llama-index-core
29 ];
30
31 # Tests are only available in the mono repo
32 doCheck = false;
33
34 pythonImportsCheck = [ "llama_index.indices.managed.llama_cloud" ];
35
36 meta = with lib; {
37 description = "LlamaCloud Index and Retriever";
38 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/indices/llama-index-indices-managed-llama-cloud";
39 license = licenses.mit;
40 maintainers = with maintainers; [ fab ];
41 };
42}