2024-04-04 21:00:30 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
asyncpg,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
llama-index-core,
|
|
|
|
pgvector,
|
|
|
|
poetry-core,
|
|
|
|
psycopg2,
|
|
|
|
pythonOlder,
|
2024-03-28 14:26:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "llama-index-vector-stores-postgres";
|
2024-10-01 22:48:23 +00:00
|
|
|
version = "0.2.6";
|
2024-03-28 14:26:34 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "llama_index_vector_stores_postgres";
|
|
|
|
inherit version;
|
2024-10-01 22:48:23 +00:00
|
|
|
hash = "sha256-x6KOZMZ5W8F8FATH3ZAwAeyrZ/rvjzrEooaFgQsSATQ=";
|
2024-03-28 14:26:34 +00:00
|
|
|
};
|
|
|
|
|
2024-04-04 21:00:30 +00:00
|
|
|
pythonRemoveDeps = [ "psycopg2-binary" ];
|
2024-03-28 14:26:34 +00:00
|
|
|
|
|
|
|
build-system = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
asyncpg
|
|
|
|
llama-index-core
|
|
|
|
pgvector
|
|
|
|
psycopg2
|
|
|
|
];
|
|
|
|
|
2024-04-04 21:00:30 +00:00
|
|
|
pythonImportsCheck = [ "llama_index.vector_stores.postgres" ];
|
2024-03-28 14:26:34 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|