sourcehut: add override for SQLAlchemy 1.x

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-04-03 12:34:30 +02:00
parent 900664876c
commit 12fe05f0e3
No known key found for this signature in database
GPG Key ID: 73D5E7FDEE3DE49A

View File

@ -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