about summary refs log tree commit diff
path: root/pkgs/development/python-modules/llama-cloud/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/llama-cloud/default.nix')
-rw-r--r--pkgs/development/python-modules/llama-cloud/default.nix42
1 files changed, 42 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/llama-cloud/default.nix b/pkgs/development/python-modules/llama-cloud/default.nix
new file mode 100644
index 000000000000..1da515654a97
--- /dev/null
+++ b/pkgs/development/python-modules/llama-cloud/default.nix
@@ -0,0 +1,42 @@
+{
+  lib,
+  buildPythonPackage,
+  fetchPypi,
+  httpx,
+  poetry-core,
+  pydantic,
+  pythonOlder,
+}:
+
+buildPythonPackage rec {
+  pname = "llama-cloud";
+  version = "0.1.4";
+  pyproject = true;
+
+  disabled = pythonOlder "3.8";
+
+  src = fetchPypi {
+    pname = "llama_cloud";
+    inherit version;
+    hash = "sha256-bwFVl5vZYWCVHLgSxIg28frOA3vHnM/Y0YWxjvTJ+vg=";
+  };
+
+  build-system = [ poetry-core ];
+
+  dependencies = [
+    httpx
+    pydantic
+  ];
+
+  # Module has no tests
+  doCheck = false;
+
+  pythonImportsCheck = [ "llama_cloud" ];
+
+  meta = with lib; {
+    description = "LlamaIndex Python Client";
+    homepage = "https://pypi.org/project/llama-cloud/";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}