From 12fe05f0e30baefa18b890420df7628a213f77ec Mon Sep 17 00:00:00 2001 From: Christoph Heiss Date: Mon, 3 Apr 2023 12:34:30 +0200 Subject: sourcehut: add override for SQLAlchemy 1.x Signed-off-by: Christoph Heiss --- pkgs/applications/version-management/sourcehut/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'pkgs/applications/version-management') diff --git a/pkgs/applications/version-management/sourcehut/default.nix b/pkgs/applications/version-management/sourcehut/default.nix index 2878332f3273..b2005f5643be 100644 --- a/pkgs/applications/version-management/sourcehut/default.nix +++ b/pkgs/applications/version-management/sourcehut/default.nix @@ -3,6 +3,7 @@ , recurseIntoAttrs , nixosTests , config +, fetchPypi }: # To expose the *srht modules, they have to be a python module so we use `buildPythonModule` @@ -24,6 +25,18 @@ let todosrht = self.callPackage ./todo.nix { }; scmsrht = self.callPackage ./scm.nix { }; + + # sourcehut is not (yet) compatible with SQLAlchemy 2.x + sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { + version = "1.4.46"; + src = fetchPypi { + pname = "SQLAlchemy"; + inherit version; + hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA="; + }; + nativeCheckInputs = with super; [ pytestCheckHook mock ]; + disabledTestPaths = []; + }); }; }; in -- cgit 1.4.1