fixup! python310Packages.pecan: Disable with sqlalchemy 2.0
This commit is contained in:
parent
cf7a8642fc
commit
b3ab487146
|
@ -44,6 +44,16 @@ buildPythonPackage rec {
|
|||
|
||||
pytestFlagsArray = [
|
||||
"--pyargs pecan"
|
||||
# tests fail with sqlalchemy 2.0
|
||||
] ++ lib.optionals (lib.versionAtLeast sqlalchemy.version "2.0") [
|
||||
# The 'sqlalchemy.orm.mapper()' function is removed as of SQLAlchemy
|
||||
# 2.0. Use the 'sqlalchemy.orm.registry.map_imperatively()` method
|
||||
# of the ``sqlalchemy.orm.registry`` class to perform classical
|
||||
# mapping.
|
||||
# https://github.com/pecan/pecan/issues/143
|
||||
"--deselect=pecan/tests/test_jsonify.py::TestJsonifySQLAlchemyGenericEncoder::test_result_proxy"
|
||||
"--deselect=pecan/tests/test_jsonify.py::TestJsonifySQLAlchemyGenericEncoder::test_row_proxy"
|
||||
"--deselect=pecan/tests/test_jsonify.py::TestJsonifySQLAlchemyGenericEncoder::test_sa_object"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
|
@ -51,7 +61,6 @@ buildPythonPackage rec {
|
|||
];
|
||||
|
||||
meta = with lib; {
|
||||
broken = lib.versionAtLeast sqlalchemy.version "2.0";
|
||||
changelog = "https://pecan.readthedocs.io/en/latest/changes.html";
|
||||
description = "WSGI object-dispatching web framework";
|
||||
homepage = "https://www.pecanpy.org/";
|
||||
|
|
Loading…
Reference in a new issue