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