mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
spf-engine: apply review comments
This commit is contained in:
parent
d316aeccdf
commit
3d8ffea12c
@ -29,6 +29,8 @@ buildPythonPackage rec {
|
|||||||
rm testpolicy.py
|
rm testpolicy.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "Milter" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://bmsi.com/python/milter.html";
|
homepage = "http://bmsi.com/python/milter.html";
|
||||||
description = "Python bindings for libmilter api";
|
description = "Python bindings for libmilter api";
|
||||||
|
@ -2,25 +2,29 @@
|
|||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "spf-engine";
|
pname = "spf-engine";
|
||||||
majorVersion = lib.versions.majorMinor version;
|
|
||||||
version = "2.9.3";
|
version = "2.9.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://launchpad.net/${pname}/${majorVersion}/${version}/+download/${pname}-${version}.tar.gz";
|
url = "https://launchpad.net/${pname}/${lib.versions.majorMinor version}/${version}/+download/${pname}-${version}.tar.gz";
|
||||||
sha256 = "sha256-w0Nb+L/Os3KPApENoylxCVaCD4FvgmvpfVvwCkt2IDE=";
|
sha256 = "sha256-w0Nb+L/Os3KPApENoylxCVaCD4FvgmvpfVvwCkt2IDE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pyspf dnspython authres pymilter ];
|
propagatedBuildInputs = [ pyspf dnspython authres pymilter ];
|
||||||
|
|
||||||
preBuild = ''
|
pythonImportsCheck = [
|
||||||
|
"spf_engine"
|
||||||
|
"spf_engine.milter_spf"
|
||||||
|
"spf_engine.policyd_spf"
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
substituteInPlace setup.py --replace "'/etc'" "'$out/etc'"
|
substituteInPlace setup.py --replace "'/etc'" "'$out/etc'"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://launchpad.net/${pname}/";
|
homepage = "https://launchpad.net/spf-engine/";
|
||||||
description = "Postfix policy engine for Sender Policy Framework (SPF) checking";
|
description = "Postfix policy engine for Sender Policy Framework (SPF) checking";
|
||||||
maintainers = with maintainers; [ abbradar ];
|
maintainers = with maintainers; [ abbradar ];
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = platforms.all;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user