mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
sourcehut: add override for SQLAlchemy 1.x
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
900664876c
commit
12fe05f0e3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user