Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 asyncpg, 4 buildPythonPackage, 5 fetchPypi, 6 llama-index-core, 7 pgvector, 8 poetry-core, 9 psycopg2, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "llama-index-vector-stores-postgres"; 15 version = "0.1.11"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.8"; 19 20 src = fetchPypi { 21 pname = "llama_index_vector_stores_postgres"; 22 inherit version; 23 hash = "sha256-ziP/lUnFJpvcy6Y4h1uSH6qkpYHO+3U+mfg2XIJIeg4="; 24 }; 25 26 pythonRemoveDeps = [ "psycopg2-binary" ]; 27 28 build-system = [ 29 poetry-core 30 ]; 31 32 dependencies = [ 33 asyncpg 34 llama-index-core 35 pgvector 36 psycopg2 37 ]; 38 39 pythonImportsCheck = [ "llama_index.vector_stores.postgres" ]; 40 41 meta = with lib; { 42 description = "LlamaIndex Vector Store Integration for Postgres"; 43 homepage = "https://github.com/run-llama/llama_index/tree/main/llama-index-integrations/vector_stores/llama-index-vector-stores-postgres"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}