From cf7a8642fc13d1547e4b87d684263778e87295bc Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 8 Mar 2023 14:44:18 +0100 Subject: [PATCH] ceph: Pin sqlalchemy at 1.4.46 The pecan library it uses is incompatible with sqlalchemy>=2.0. --- pkgs/tools/filesystems/ceph/default.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/filesystems/ceph/default.nix b/pkgs/tools/filesystems/ceph/default.nix index 95bf111d6deb..15e5071f963a 100644 --- a/pkgs/tools/filesystems/ceph/default.nix +++ b/pkgs/tools/filesystems/ceph/default.nix @@ -105,7 +105,25 @@ let }; # Boost 1.75 is not compatible with Python 3.10 - python = python39; + python = python39.override { + packageOverrides = self: super: { + sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { + version = "1.4.46"; + src = super.fetchPypi { + pname = "SQLAlchemy"; + inherit version; + hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA="; + }; + nativeCheckInputs = oldAttrs.nativeCheckInputs ++ (with super; [ + pytest-xdist + ]); + disabledTestPaths = (oldAttrs.disabledTestPaths or []) ++ [ + "test/aaa_profiling" + "test/ext/mypy" + ]; + }); + }; + }; boost = boost175.override { enablePython = true;