summaryrefslogtreecommitdiff
path: root/overlays/postfix-mta-sts-resolver.nix
blob: 1d8f01881cacf30e0a72703712f3142c28dedb69 (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
{ 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 ];
        });
      })
    ];
  };
}