Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python311Packages.pgvector: 0.2.3 -> 0.2.4 #269751

Merged
merged 2 commits into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pkgs/development/python-modules/pgvector/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
, pytestCheckHook
, pythonOlder
, sqlalchemy
, sqlmodel
}:

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

disabled = pythonOlder "3.8";
Expand All @@ -26,7 +27,7 @@ buildPythonPackage rec {
owner = "pgvector";
repo = "pgvector-python";
rev = "refs/tags/v${version}";
hash = "sha256-KQROG0cHvKmdWssr7Git3JH0YguRPno/ZzYiQL7VhwU=";
hash = "sha256-XKoaEwLW59pV4Dwis7p2L65XoO2zUEa1kXxz6Lgs2d8=";
};

propagatedBuildInputs = [
Expand All @@ -44,6 +45,7 @@ buildPythonPackage rec {
pytest-asyncio
pytestCheckHook
sqlalchemy
sqlmodel
];

env = {
Expand Down
58 changes: 58 additions & 0 deletions pkgs/development/python-modules/sqlmodel/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{ lib
, buildPythonPackage
, fastapi
, fetchFromGitHub
, poetry-core
, pydantic
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, sqlalchemy
}:

buildPythonPackage rec {
pname = "sqlmodel";
version = "0.0.12";
pyproject = true;

disabled = pythonOlder "3.7";

src = fetchFromGitHub {
owner = "tiangolo";
repo = "sqlmodel";
rev = "refs/tags/${version}";
hash = "sha256-ER8NGDcCCCXT8lsm8fgJUaLyjdf5v2/UdrBw5T9EeXQ=";
};

nativeBuildInputs = [
poetry-core
];

propagatedBuildInputs = [
pydantic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sqlalchemy
];

nativeCheckInputs = [
fastapi
pytest-asyncio
pytestCheckHook
];

pythonImportsCheck = [
"sqlmodel"
];

disabledTestPaths = [
# Coverage
"tests/test_tutorial/test_create_db_and_table/test_tutorial001.py"
];

meta = with lib; {
description = "Module to work with SQL databases";
homepage = "https://github.com/tiangolo/sqlmodel";
changelog = "https://github.com/tiangolo/sqlmodel/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13417,6 +13417,8 @@ self: super: with self; {

sqlmap = callPackage ../development/python-modules/sqlmap { };

sqlmodel = callPackage ../development/python-modules/sqlmodel { };

sqlobject = callPackage ../development/python-modules/sqlobject { };

sqlparse = callPackage ../development/python-modules/sqlparse { };
Expand Down