2018-02-25 17:19:51 +00:00
|
|
|
{ lib, buildPythonApplication, fetchurl, pyspf }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pypolicyd-spf";
|
2018-02-25 17:19:51 +00:00
|
|
|
majorVersion = "2.0";
|
|
|
|
version = "${majorVersion}.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://launchpad.net/pypolicyd-spf/${majorVersion}/${version}/+download/${pname}-${version}.tar.gz";
|
2018-02-25 17:19:51 +00:00
|
|
|
sha256 = "1nm8y1jjgx6mxrbcxrbdnmkf8vglwp0wiw6jipzh641wb24gi76z";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyspf ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace setup.py --replace "'/etc'" "'$out/etc'"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://launchpad.net/pypolicyd-spf/";
|
2018-02-25 17:19:51 +00:00
|
|
|
description = "Postfix policy engine for Sender Policy Framework (SPF) checking";
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|