Skip to content

Commit

Permalink
python312Packages.pgvector: 0.2.4 -> 0.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Oct 29, 2024
1 parent e4206d4 commit 42bf3ab
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions pkgs/development/python-modules/pgvector/default.nix
Original file line number Diff line number Diff line change
@@ -1,48 +1,56 @@
{
lib,
asyncpg,
buildPythonPackage,
django,
fetchFromGitHub,

# build-system
setuptools,

# dependencies
numpy,

# tests
asyncpg,
django,
peewee,
postgresql,
postgresqlTestHook,
psycopg,
psycopg2,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
scipy,
sqlalchemy,
sqlmodel,
}:

buildPythonPackage rec {
pname = "pgvector";
version = "0.2.4";
format = "setuptools";

disabled = pythonOlder "3.8";
version = "0.3.6";
pyproject = true;

src = fetchFromGitHub {
owner = "pgvector";
repo = "pgvector-python";
rev = "refs/tags/v${version}";
hash = "sha256-XKoaEwLW59pV4Dwis7p2L65XoO2zUEa1kXxz6Lgs2d8=";
hash = "sha256-ho0UgamZxsN+pv7QkpsDnN7f+I+SrexA2gVtmJF8/3Q=";
};

propagatedBuildInputs = [ numpy ];
build-system = [ setuptools ];

dependencies = [ numpy ];

nativeCheckInputs = [
asyncpg
django
peewee
(postgresql.withPackages (p: with p; [ pgvector ]))
postgresqlTestHook
psycopg
psycopg2
(postgresql.withPackages (p: with p; [ pgvector ]))
postgresqlTestHook
pytest-asyncio
pytestCheckHook
scipy
sqlalchemy
sqlmodel
];
Expand All @@ -55,11 +63,11 @@ buildPythonPackage rec {

pythonImportsCheck = [ "pgvector" ];

meta = with lib; {
meta = {
description = "Pgvector support for Python";
homepage = "https://github.com/pgvector/pgvector-python";
changelog = "https://github.com/pgvector/pgvector-python/blob/${src.rev}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ natsukium ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ natsukium ];
};
}

0 comments on commit 42bf3ab

Please sign in to comment.