summary refs log tree commit diff
path: root/pkgs/servers/mail/spf-engine/default.nix
blob: 9237d735971a5b935cdd2d3330a39e1ae1a8d37c (plain) (blame)
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
{ lib, buildPythonApplication, fetchurl, pyspf, dnspython, authres, pymilter }:

buildPythonApplication rec {
  pname = "spf-engine";
  majorVersion = lib.versions.majorMinor version;
  version = "2.9.3";

  src = fetchurl {
    url = "https://launchpad.net/${pname}/${majorVersion}/${version}/+download/${pname}-${version}.tar.gz";
    sha256 = "sha256-w0Nb+L/Os3KPApENoylxCVaCD4FvgmvpfVvwCkt2IDE=";
  };

  propagatedBuildInputs = [ pyspf dnspython authres pymilter ];

  preBuild = ''
    substituteInPlace setup.py --replace "'/etc'" "'$out/etc'"
  '';

  meta = with lib; {
    homepage = "https://launchpad.net/${pname}/";
    description = "Postfix policy engine for Sender Policy Framework (SPF) checking";
    maintainers = with maintainers; [ abbradar ];
    license = licenses.asl20;
    platforms = platforms.all;
  };
}