1{
2 lib,
3 buildPythonPackage,
4 click,
5 deepdiff,
6 eval-type-backport,
7 fetchFromGitHub,
8 llama-cloud,
9 llama-index-core,
10 platformdirs,
11 poetry-core,
12 pydantic,
13 pytest-asyncio,
14 pytestCheckHook,
15 python-dotenv,
16}:
17
18buildPythonPackage rec {
19 pname = "llama-cloud-services";
20 version = "0.6.22";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "run-llama";
25 repo = "llama_cloud_services";
26 tag = "v${version}";
27 hash = "sha256-o2nSiMj/vQq4xWV0lgL3LUdlQg+3EzrhASfd0NILMfA=";
28 };
29
30 pythonRelaxDeps = [ "llama-cloud" ];
31
32 build-system = [ poetry-core ];
33
34 dependencies = [
35 click
36 eval-type-backport
37 llama-cloud
38 llama-index-core
39 platformdirs
40 pydantic
41 python-dotenv
42 ];
43
44 # Missing dependency autoevals
45 doCheck = false;
46
47 pythonImportsCheck = [ "llama_cloud_services" ];
48
49 meta = {
50 description = "Knowledge Agents and Management in the Cloud";
51 homepage = "https://github.com/run-llama/llama_cloud_services";
52 changelog = "https://github.com/run-llama/llama_cloud_services/releases/tag/${src.tag}";
53 license = lib.licenses.mit;
54 maintainers = with lib.maintainers; [ fab ];
55 };
56}