From 3ef0b7d54955bc40dbdb249f31d29db3c5ed427f Mon Sep 17 00:00:00 2001 From: linsui <36977733+linsui@users.noreply.github.com> Date: Sat, 8 Feb 2025 12:18:08 +0800 Subject: [PATCH] python3Packages.dataset: use sqlalchemy_1_4 --- pkgs/development/python-modules/dataset/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/dataset/default.nix b/pkgs/development/python-modules/dataset/default.nix index 778082fc276f..88ba3b024da0 100644 --- a/pkgs/development/python-modules/dataset/default.nix +++ b/pkgs/development/python-modules/dataset/default.nix @@ -5,7 +5,7 @@ buildPythonPackage, fetchPypi, pythonOlder, - sqlalchemy, + sqlalchemy_1_4, }: buildPythonPackage rec { @@ -21,9 +21,11 @@ buildPythonPackage rec { }; propagatedBuildInputs = [ - alembic + (alembic.override { sqlalchemy = sqlalchemy_1_4; }) banal - sqlalchemy + # SQLAlchemy >= 2.0.0 is unsupported + # https://github.com/pudo/dataset/issues/411 + sqlalchemy_1_4 ]; # checks attempt to import nonexistent module 'test.test' and fail @@ -36,8 +38,5 @@ buildPythonPackage rec { homepage = "https://dataset.readthedocs.io"; license = licenses.mit; maintainers = with maintainers; [ xfnw ]; - # SQLAlchemy >= 2.0.0 is unsupported - # https://github.com/pudo/dataset/issues/411 - broken = true; }; }