2023-10-09 19:29:22 +00:00
|
|
|
{ python3, fetchPypi, lib, overlay ? (_: _: {}) }:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
python3.override {
|
2023-08-22 20:05:09 +00:00
|
|
|
packageOverrides = lib.composeExtensions
|
|
|
|
(self: super: {
|
|
|
|
/*
|
|
|
|
This overlay can be used whenever we need to override
|
|
|
|
dependencies specific to the mailman ecosystem: in the past
|
|
|
|
this was necessary for e.g. psycopg2[1] or sqlalchemy[2].
|
|
|
|
|
|
|
|
In such a large ecosystem this sort of issue is expected
|
|
|
|
to arise again. Since we don't want to clutter the python package-set
|
|
|
|
itself with version overrides and don't want to change the APIs
|
|
|
|
in here back and forth every time this comes up (and as a result
|
|
|
|
force users to change their code accordingly), this overlay
|
|
|
|
is kept on purpose, even when empty.
|
|
|
|
|
|
|
|
[1] 72a14ea563a3f5bf85db659349a533fe75a8b0ce
|
|
|
|
[2] f931bc81d63f5cfda55ac73d754c87b3fd63b291
|
|
|
|
*/
|
2023-11-16 04:20:00 +00:00
|
|
|
|
|
|
|
# django-q tests fail with redis 5.0.0.
|
2024-01-25 14:12:00 +00:00
|
|
|
# https://gitlab.com/mailman/hyperkitty/-/issues/493
|
2023-11-16 04:20:00 +00:00
|
|
|
redis = super.redis.overridePythonAttrs ({ pname, ... }: rec {
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "4.6.0";
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-25 14:12:00 +00:00
|
|
|
hash = "sha256-WF3FFrnrBCphnvCjnD19Vf6BvbTfCaUsnN3g0Hvxqn0=";
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
});
|
2024-06-24 18:47:55 +00:00
|
|
|
|
|
|
|
readme-renderer = super.readme-renderer.overridePythonAttrs (_: {
|
|
|
|
propagatedBuildInputs = [ self.cmarkgfm ];
|
|
|
|
});
|
2023-08-22 20:05:09 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
overlay;
|
2022-06-16 17:23:12 +00:00
|
|
|
}
|