summaryrefslogtreecommitdiff
path: root/overlays/postfix-mta-sts-resolver.nix
blob: d8b1ff00f55a087167042bdd1cb337b9c7cf6439 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ final, prev, flakeInputs, sources, ... }:
{
  postfix-mta-sts-resolver = flakeInputs.mach-nix.lib.${final.system}.buildPythonPackage {
    inherit (sources.postfix-mta-sts-resolver) src pname version;
    extras = "redis,uvloop";
    ignoreDataOutdated = true;

    requirements = ''
      redis>=4.2.0rc1
      uvloop>=0.11.0
      aiodns>=1.1.1
      aiohttp>=3.4.4
      PyYAML>=3.12
    '';

    providers._default = "nixpkgs,sdist";

    overridesPost = [
      (self: super: {
        frozenlist = super.frozenlist.overrideAttrs (oldAttrs: {
          nativeBuildInputs = (oldAttrs.nativeBuildInputs or []) ++ [ final.python310Packages.cython ];
        });
      })
    ];

    _.pyparsing.buildInputs.add = with final.python310Packages; [ flit-core ];
    _.idna.buildInputs.add = with final.python310Packages; [ flit-core ];
  };
}