nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 python3,
3 lib,
4 overlay ? (_: _: { }),
5}:
6
7lib.fix (
8 self:
9 python3.override {
10 inherit self;
11 packageOverrides =
12 lib.composeExtensions
13 (self: super: {
14 /*
15 This overlay can be used whenever we need to override
16 dependencies specific to the mailman ecosystem: in the past
17 this was necessary for e.g. psycopg2[1] or sqlalchemy[2].
18
19 In such a large ecosystem this sort of issue is expected
20 to arise again. Since we don't want to clutter the python package-set
21 itself with version overrides and don't want to change the APIs
22 in here back and forth every time this comes up (and as a result
23 force users to change their code accordingly), this overlay
24 is kept on purpose, even when empty.
25
26 [1] 72a14ea563a3f5bf85db659349a533fe75a8b0ce
27 [2] f931bc81d63f5cfda55ac73d754c87b3fd63b291
28 */
29 # https://gitlab.com/mailman/hyperkitty/-/merge_requests/681
30 django = super.django_4;
31
32 django-allauth = super.django-allauth.overrideAttrs (
33 new:
34 { src, ... }:
35 {
36 version = "0.63.6";
37 src = src.override {
38 tag = new.version;
39 hash = "sha256-13/QbA//wyHE9yMB7Jy/sJEyqPKxiMN+CZwSc4U6okU=";
40 };
41 patches = [ ];
42 }
43 );
44 })
45
46 overlay;
47 }
48)