2022-11-27 09:42:12 +00:00
|
|
|
{ lib, buildPythonApplication, fetchurl, pyspf, dnspython, authres, pymilter }:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "spf-engine";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "3.0.4";
|
|
|
|
format = "flit";
|
2022-11-27 09:42:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://launchpad.net/${pname}/${lib.versions.majorMinor version}/${version}/+download/${pname}-${version}.tar.gz";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-Gcw7enNIb/TrZEYa0Z04ezHUmfMmc1J+aEH6FlXbhTo=";
|
2022-11-27 09:42:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyspf dnspython authres pymilter ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"spf_engine"
|
|
|
|
"spf_engine.milter_spf"
|
|
|
|
"spf_engine.policyd_spf"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://launchpad.net/spf-engine/";
|
|
|
|
description = "Postfix policy engine for Sender Policy Framework (SPF) checking";
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|