1{ 2 lib, 3 asyncpg, 4 buildPythonPackage, 5 fetchPypi, 6 llama-index-core, 7 pgvector, 8 hatchling, 9 psycopg2, 10}: 11 12buildPythonPackage rec { 13 pname = "llama-index-vector-stores-postgres"; 14 version = "0.7.0"; 15 pyproject = true; 16 17 src = fetchPypi { 18 pname = "llama_index_vector_stores_postgres"; 19 inherit version; 20 hash = "sha256-wWn3y/NEb71N2hCcd06iof7favJxcVHZmBCvP4UQJl8="; 21 }; 22 23 pythonRemoveDeps = [ "psycopg2-binary" ]; 24 25 pythonRelaxDeps = [ "pgvector" ]; 26 27 build-system = [ hatchling ]; 28 29 dependencies = [ 30 asyncpg 31 llama-index-core 32 pgvector 33 psycopg2 34 ]; 35 36 pythonImportsCheck = [ "llama_index.vector_stores.postgres" ]; 37 38 meta = { 39 description = "LlamaIndex Vector Store Integration for Postgres"; 40 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/vector_stores/llama-index-vector-stores-postgres"; 41 license = lib.licenses.mit; 42 maintainers = with lib.maintainers; [ fab ]; 43 }; 44}