Skip to content

Commit 5b7acac

Browse files
authored
python312Packages.txtai: 7.4.0 -> 8.0.0; fix (#352153)
2 parents 9483e2e + b860c30 commit 5b7acac

File tree

3 files changed

+132
-67
lines changed

3 files changed

+132
-67
lines changed

pkgs/development/python-modules/llama-index-vector-stores-postgres/default.nix

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,13 @@
77
pgvector,
88
poetry-core,
99
psycopg2,
10-
pythonOlder,
1110
}:
1211

1312
buildPythonPackage rec {
1413
pname = "llama-index-vector-stores-postgres";
1514
version = "0.2.6";
1615
pyproject = true;
1716

18-
disabled = pythonOlder "3.8";
19-
2017
src = fetchPypi {
2118
pname = "llama_index_vector_stores_postgres";
2219
inherit version;
@@ -25,6 +22,10 @@ buildPythonPackage rec {
2522

2623
pythonRemoveDeps = [ "psycopg2-binary" ];
2724

25+
pythonRelaxDeps = [
26+
"pgvector"
27+
];
28+
2829
build-system = [
2930
poetry-core
3031
];
@@ -38,10 +39,10 @@ buildPythonPackage rec {
3839

3940
pythonImportsCheck = [ "llama_index.vector_stores.postgres" ];
4041

41-
meta = with lib; {
42+
meta = {
4243
description = "LlamaIndex Vector Store Integration for Postgres";
4344
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 ];
45+
license = lib.licenses.mit;
46+
maintainers = with lib.maintainers; [ fab ];
4647
};
4748
}
Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,56 @@
11
{
22
lib,
3-
asyncpg,
43
buildPythonPackage,
5-
django,
64
fetchFromGitHub,
5+
6+
# build-system
7+
setuptools,
8+
9+
# dependencies
710
numpy,
11+
12+
# tests
13+
asyncpg,
14+
django,
815
peewee,
916
postgresql,
1017
postgresqlTestHook,
1118
psycopg,
1219
psycopg2,
1320
pytest-asyncio,
1421
pytestCheckHook,
15-
pythonOlder,
22+
scipy,
1623
sqlalchemy,
1724
sqlmodel,
1825
}:
1926

2027
buildPythonPackage rec {
2128
pname = "pgvector";
22-
version = "0.2.4";
23-
format = "setuptools";
24-
25-
disabled = pythonOlder "3.8";
29+
version = "0.3.6";
30+
pyproject = true;
2631

2732
src = fetchFromGitHub {
2833
owner = "pgvector";
2934
repo = "pgvector-python";
3035
rev = "refs/tags/v${version}";
31-
hash = "sha256-XKoaEwLW59pV4Dwis7p2L65XoO2zUEa1kXxz6Lgs2d8=";
36+
hash = "sha256-ho0UgamZxsN+pv7QkpsDnN7f+I+SrexA2gVtmJF8/3Q=";
3237
};
3338

34-
propagatedBuildInputs = [ numpy ];
39+
build-system = [ setuptools ];
40+
41+
dependencies = [ numpy ];
3542

3643
nativeCheckInputs = [
3744
asyncpg
3845
django
3946
peewee
40-
(postgresql.withPackages (p: with p; [ pgvector ]))
41-
postgresqlTestHook
4247
psycopg
4348
psycopg2
49+
(postgresql.withPackages (p: with p; [ pgvector ]))
50+
postgresqlTestHook
4451
pytest-asyncio
4552
pytestCheckHook
53+
scipy
4654
sqlalchemy
4755
sqlmodel
4856
];
@@ -55,11 +63,13 @@ buildPythonPackage rec {
5563

5664
pythonImportsCheck = [ "pgvector" ];
5765

58-
meta = with lib; {
66+
__darwinAllowLocalNetworking = true;
67+
68+
meta = {
5969
description = "Pgvector support for Python";
6070
homepage = "https://github.com/pgvector/pgvector-python";
6171
changelog = "https://github.com/pgvector/pgvector-python/blob/${src.rev}/CHANGELOG.md";
62-
license = licenses.mit;
63-
maintainers = with maintainers; [ natsukium ];
72+
license = lib.licenses.mit;
73+
maintainers = with lib.maintainers; [ natsukium ];
6474
};
6575
}

0 commit comments

Comments
 (0)