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 hatchling,
12 pydantic,
13 pytest-asyncio,
14 pytestCheckHook,
15 python-dotenv,
16}:
17
18buildPythonPackage rec {
19 pname = "llama-cloud-services";
20 version = "0.6.69";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "run-llama";
25 repo = "llama_cloud_services";
26 tag = "v${version}";
27 hash = "sha256-+90b/EwG8OfpjG/MJM5shvQHLsLpLe+TviufwoWI7mg=";
28 };
29
30 sourceRoot = "${src.name}/py";
31
32 pythonRelaxDeps = [ "llama-cloud" ];
33
34 build-system = [ hatchling ];
35
36 dependencies = [
37 click
38 eval-type-backport
39 llama-cloud
40 llama-index-core
41 platformdirs
42 pydantic
43 python-dotenv
44 ];
45
46 # Missing dependency autoevals
47 doCheck = false;
48
49 pythonImportsCheck = [ "llama_cloud_services" ];
50
51 meta = {
52 description = "Knowledge Agents and Management in the Cloud";
53 homepage = "https://github.com/run-llama/llama_cloud_services";
54 changelog = "https://github.com/run-llama/llama_cloud_services/releases/tag/${src.tag}";
55 license = lib.licenses.mit;
56 maintainers = with lib.maintainers; [ fab ];
57 };
58}