about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2024-03-28 15:26:34 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2024-03-28 20:24:14 +0100
commit655a28646eefbf37b01d0bfa52d5f887f903b34d (patch)
tree7423d0a9297a2e821807aa384f145ea91b292312
parent84193256b53f6ebae225edc4086effeae1c3929c (diff)
downloadnixlib-655a28646eefbf37b01d0bfa52d5f887f903b34d.tar
nixlib-655a28646eefbf37b01d0bfa52d5f887f903b34d.tar.gz
nixlib-655a28646eefbf37b01d0bfa52d5f887f903b34d.tar.bz2
nixlib-655a28646eefbf37b01d0bfa52d5f887f903b34d.tar.lz
nixlib-655a28646eefbf37b01d0bfa52d5f887f903b34d.tar.xz
nixlib-655a28646eefbf37b01d0bfa52d5f887f903b34d.tar.zst
nixlib-655a28646eefbf37b01d0bfa52d5f887f903b34d.zip
python312Packages.llama-index-vector-stores-postgres: init at 0.1.3
-rw-r--r--pkgs/development/python-modules/llama-index-vector-stores-postgres/default.nix52
-rw-r--r--pkgs/top-level/python-packages.nix2
2 files changed, 54 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/llama-index-vector-stores-postgres/default.nix b/pkgs/development/python-modules/llama-index-vector-stores-postgres/default.nix
new file mode 100644
index 000000000000..4751a0fce866
--- /dev/null
+++ b/pkgs/development/python-modules/llama-index-vector-stores-postgres/default.nix
@@ -0,0 +1,52 @@
+{ lib
+, asyncpg
+, buildPythonPackage
+, fetchPypi
+, llama-index-core
+, pgvector
+, poetry-core
+, psycopg2
+, pythonRelaxDepsHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "llama-index-vector-stores-postgres";
+  version = "0.1.3";
+  pyproject = true;
+
+  disabled = pythonOlder "3.8";
+
+  src = fetchPypi {
+    pname = "llama_index_vector_stores_postgres";
+    inherit version;
+    hash = "sha256-vWqCcda9dDPLceoOEgMivpBmkLbKs/poEjzCk/q4HwI=";
+  };
+
+  pythonRemoveDeps = [
+    "psycopg2-binary"
+  ];
+
+  build-system = [
+    poetry-core
+    pythonRelaxDepsHook
+  ];
+
+  dependencies = [
+    asyncpg
+    llama-index-core
+    pgvector
+    psycopg2
+  ];
+
+  pythonImportsCheck = [
+    "llama_index.vector_stores.postgres"
+  ];
+
+  meta = with lib; {
+    description = "LlamaIndex Vector Store Integration for Postgres";
+    homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/vector_stores/llama-index-vector-stores-postgres";
+    license = licenses.mit;
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 450e1105b8b5..49e05591355c 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -6812,6 +6812,8 @@ self: super: with self; {
 
   llama-index-vector-stores-chroma = callPackage ../development/python-modules/llama-index-vector-stores-chroma { };
 
+  llama-index-vector-stores-postgres = callPackage ../development/python-modules/llama-index-vector-stores-postgres { };
+
   llama-parse = callPackage ../development/python-modules/llama-parse { };
 
   llamaindex-py-client = callPackage ../development/python-modules/llamaindex-py-client { };