python313Packages.sqlmodel: 0.0.24 -> 0.0.31 (#475566)

This commit is contained in:
Sandro
2026-01-04 20:12:46 +00:00
committed by GitHub
@@ -6,38 +6,24 @@
dirty-equals,
fastapi,
fetchFromGitHub,
fetchpatch,
pdm-backend,
pydantic,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
sqlalchemy,
}:
buildPythonPackage rec {
pname = "sqlmodel";
version = "0.0.24";
version = "0.0.31";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tiangolo";
repo = "sqlmodel";
tag = version;
hash = "sha256-RKihR3UJLuBYSHK79pcxIx/hT0nCkqQO8zBrq4AWaYM=";
hash = "sha256-HJ8we0gYySagUvs7NEKcwe9l7KEcqmJ8+CTW/rjBdME=";
};
patches = [
(fetchpatch {
# https://github.com/tiangolo/sqlmodel/pull/969
name = "passthru-environ-variables.patch";
url = "https://github.com/tiangolo/sqlmodel/pull/969/commits/42d33049e9e4182b78914ad41d1e3d30125126ba.patch";
hash = "sha256-dPuFCFUnmTpduxn45tE8XUP0Jlwjwmwe+zFaKSganOg=";
})
];
build-system = [ pdm-backend ];
dependencies = [
@@ -50,17 +36,11 @@ buildPythonPackage rec {
jinja2
dirty-equals
fastapi
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "sqlmodel" ];
disabledTests = [
# AssertionError: assert 'enum_field VARCHAR(1)
"test_sqlite_ddl_sql"
];
disabledTestPaths = [
# Coverage
"docs_src/tutorial/"
@@ -69,8 +49,8 @@ buildPythonPackage rec {
meta = {
description = "Module to work with SQL databases";
homepage = "https://github.com/tiangolo/sqlmodel";
changelog = "https://github.com/tiangolo/sqlmodel/releases/tag/${version}";
homepage = "https://github.com/fastapi/sqlmodel";
changelog = "https://github.com/fastapi/sqlmodel/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};