python312Packages.sqlalchemy-i18n: mark as broken

This commit is contained in:
natsukium
2025-01-13 13:44:11 +09:00
parent 0888858ec1
commit aee6355d78
2 changed files with 16 additions and 5 deletions

View File

@@ -42,11 +42,20 @@ buildPythonPackage rec {
i18n = [ sqlalchemy-i18n ];
};
nativeCheckInputs = [
psycopg2
pymysql
pytestCheckHook
] ++ lib.flatten (lib.attrValues optional-dependencies);
nativeCheckInputs =
[
psycopg2
pymysql
pytestCheckHook
]
++ optional-dependencies.flask
++ optional-dependencies.flask-login
++ optional-dependencies.flask-sqlalchemy;
disabledTestPaths = [
# requires sqlalchemy-i18n, which is incompatible with sqlalchemy>=2
"tests/test_i18n.py"
];
preCheck = ''
# Indicate tests that we don't have a database server at hand

View File

@@ -49,5 +49,7 @@ buildPythonPackage rec {
homepage = "https://github.com/kvesteri/sqlalchemy-i18n";
description = "Internationalization extension for SQLAlchemy models";
license = lib.licenses.bsd3;
# sqlalchemy.exc.InvalidRequestError: The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy 2.0.
broken = lib.versionAtLeast sqlalchemy.version "2";
};
}