about summary refs log tree commit diff
path: root/pkgs/applications/version-management
diff options
context:
space:
mode:
authorChristoph Heiss <christoph@c8h4.io>2023-04-03 12:34:30 +0200
committerChristoph Heiss <christoph@c8h4.io>2023-11-11 13:01:32 +0100
commit12fe05f0e30baefa18b890420df7628a213f77ec (patch)
tree3a4a691fc27d3eea3df9d43d40891a24f9f46e96 /pkgs/applications/version-management
parent900664876c724d0ec8f14486c96462cb4953d5f2 (diff)
downloadnixlib-12fe05f0e30baefa18b890420df7628a213f77ec.tar
nixlib-12fe05f0e30baefa18b890420df7628a213f77ec.tar.gz
nixlib-12fe05f0e30baefa18b890420df7628a213f77ec.tar.bz2
nixlib-12fe05f0e30baefa18b890420df7628a213f77ec.tar.lz
nixlib-12fe05f0e30baefa18b890420df7628a213f77ec.tar.xz
nixlib-12fe05f0e30baefa18b890420df7628a213f77ec.tar.zst
nixlib-12fe05f0e30baefa18b890420df7628a213f77ec.zip
sourcehut: add override for SQLAlchemy 1.x
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r--pkgs/applications/version-management/sourcehut/default.nix13
1 files changed, 13 insertions, 0 deletions
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