sourcehut: add overrides for flask-sqlalchemy and factory-boy

These are needed, as the used sourcehut version is not compatible with
the newer major-releases for both packages.

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-11-11 13:35:12 +01:00
parent 641e54bb28
commit 79dc7c3c10
No known key found for this signature in database
GPG Key ID: 73D5E7FDEE3DE49A

View File

@ -37,6 +37,40 @@ let
nativeCheckInputs = with super; [ pytestCheckHook mock ];
disabledTestPaths = [];
});
flask-sqlalchemy = super.flask-sqlalchemy.overridePythonAttrs (oldAttrs: rec {
version = "2.5.1";
format = "setuptools";
src = fetchPypi {
pname = "Flask-SQLAlchemy";
inherit version;
hash = "sha256-K9pEtD58rLFdTgX/PMH4vJeTbMRkYjQkECv8LDXpWRI=";
};
propagatedBuildInputs = with self; [
flask
sqlalchemy
];
});
# sourcehut is not (yet) compatible with factory-boy 3.x
factory-boy = super.factory-boy.overridePythonAttrs (oldAttrs: rec {
version = "2.12.0";
src = fetchPypi {
pname = "factory_boy";
inherit version;
hash = "sha256-+vSNYIoXNfDQo8nL9TbWT5EytUfa57pFLE2Zp56Eo3A=";
};
nativeCheckInputs = (with super; [
django
flask
mongoengine
pytestCheckHook
]) ++ (with self; [
sqlalchemy
flask-sqlalchemy
]);
postPatch = "";
});
};
};
in