diff options
author | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2022-10-09 10:40:07 +0200 |
---|---|---|
committer | Yorick van Pelt <yorick@yorickvanpelt.nl> | 2022-11-21 11:46:25 +0100 |
commit | 37cc873ac8275cc6b5cdbf0f8ac8eab1f01a8038 (patch) | |
tree | 3b8b46a5437dc20a9100c76a58cf6402d08635d6 /pkgs/servers/mail/spf-engine | |
parent | 2fb3bfb178b2f0002b47b290f2479ea04251875b (diff) |
pypolicyd-spf 2.0.2 -> spf-engine 2.9.3
Fixes CVE-2019-20790
Diffstat (limited to 'pkgs/servers/mail/spf-engine')
-rw-r--r-- | pkgs/servers/mail/spf-engine/default.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/servers/mail/spf-engine/default.nix b/pkgs/servers/mail/spf-engine/default.nix new file mode 100644 index 000000000000..9237d735971a --- /dev/null +++ b/pkgs/servers/mail/spf-engine/default.nix @@ -0,0 +1,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; + }; +} |