pypolicyd-spf 2.0.2 -> spf-engine 2.9.3

Fixes CVE-2019-20790
This commit is contained in:
Yorick van Pelt 2022-10-09 10:40:07 +02:00
parent 2fb3bfb178
commit 37cc873ac8
No known key found for this signature in database
GPG Key ID: A36E70F9DC014A15
4 changed files with 28 additions and 27 deletions

View File

@ -1,26 +0,0 @@
{ lib, buildPythonApplication, fetchurl, pyspf }:
buildPythonApplication rec {
pname = "pypolicyd-spf";
majorVersion = "2.0";
version = "${majorVersion}.2";
src = fetchurl {
url = "https://launchpad.net/pypolicyd-spf/${majorVersion}/${version}/+download/${pname}-${version}.tar.gz";
sha256 = "1nm8y1jjgx6mxrbcxrbdnmkf8vglwp0wiw6jipzh641wb24gi76z";
};
propagatedBuildInputs = [ pyspf ];
preBuild = ''
substituteInPlace setup.py --replace "'/etc'" "'$out/etc'"
'';
meta = with lib; {
homepage = "https://launchpad.net/pypolicyd-spf/";
description = "Postfix policy engine for Sender Policy Framework (SPF) checking";
maintainers = with maintainers; [ abbradar ];
license = licenses.asl20;
platforms = platforms.all;
};
}

View File

@ -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;
};
}

View File

@ -1232,6 +1232,7 @@ mapAliases ({
pyload = throw "pyload has been removed from nixpkgs, as it was unmaintained"; # Added 2021-03-21
pynagsystemd = throw "pynagsystemd was removed as it was unmaintained and incompatible with recent systemd versions. Instead use its fork check_systemd"; # Added 2020-10-24
pyo3-pack = maturin;
pypolicyd-spf = spf-engine; # Added 2022-10-09
pyrex = throw "pyrex has been removed from nixpkgs as the project is still stuck on python2"; # Added 2022-01-12
pyrex095 = throw "pyrex has been removed from nixpkgs as the project is still stuck on python2"; # Added 2022-01-12
pyrex096 = throw "pyrex has been removed from nixpkgs as the project is still stuck on python2"; # Added 2022-01-12

View File

@ -24406,7 +24406,7 @@ with pkgs;
pure-ftpd = callPackage ../servers/ftp/pure-ftpd { };
pypolicyd-spf = python3.pkgs.callPackage ../servers/mail/pypolicyd-spf { };
spf-engine = python3.pkgs.callPackage ../servers/mail/spf-engine { };
pypiserver = with python3Packages; toPythonApplication pypiserver;