sourcehut: add override for SQLAlchemy 1.x

Signed-off-by: Christoph Heiss <christoph@c8h4.io>

+13
+13
pkgs/applications/version-management/sourcehut/default.nix
··· 3 3 , recurseIntoAttrs 4 4 , nixosTests 5 5 , config 6 + , fetchPypi 6 7 }: 7 8 8 9 # To expose the *srht modules, they have to be a python module so we use `buildPythonModule` ··· 24 25 todosrht = self.callPackage ./todo.nix { }; 25 26 26 27 scmsrht = self.callPackage ./scm.nix { }; 28 + 29 + # sourcehut is not (yet) compatible with SQLAlchemy 2.x 30 + sqlalchemy = super.sqlalchemy.overridePythonAttrs (oldAttrs: rec { 31 + version = "1.4.46"; 32 + src = fetchPypi { 33 + pname = "SQLAlchemy"; 34 + inherit version; 35 + hash = "sha256-aRO4JH2KKS74MVFipRkx4rQM6RaB8bbxj2lwRSAMSjA="; 36 + }; 37 + nativeCheckInputs = with super; [ pytestCheckHook mock ]; 38 + disabledTestPaths = []; 39 + }); 27 40 }; 28 41 }; 29 42 in