2023-09-10 00:51:32 +02:00
|
|
|
{ lib, buildPythonApplication, fetchurl, flit-core, pyspf, dnspython, authres, pymilter }:
|
2022-10-09 10:40:07 +02:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "spf-engine";
|
2023-04-29 01:46:48 +02:00
|
|
|
version = "3.0.4";
|
2023-09-10 00:51:32 +02:00
|
|
|
format = "pyproject";
|
2022-10-09 10:40:07 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-11-21 11:40:32 +01:00
|
|
|
url = "https://launchpad.net/${pname}/${lib.versions.majorMinor version}/${version}/+download/${pname}-${version}.tar.gz";
|
2023-04-29 01:46:48 +02:00
|
|
|
sha256 = "sha256-Gcw7enNIb/TrZEYa0Z04ezHUmfMmc1J+aEH6FlXbhTo=";
|
2022-10-09 10:40:07 +02:00
|
|
|
};
|
|
|
|
|
2023-09-10 00:51:32 +02:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
|
2022-10-09 10:40:07 +02:00
|
|
|
propagatedBuildInputs = [ pyspf dnspython authres pymilter ];
|
|
|
|
|
2022-11-21 11:40:32 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"spf_engine"
|
|
|
|
"spf_engine.milter_spf"
|
|
|
|
"spf_engine.policyd_spf"
|
|
|
|
];
|
|
|
|
|
2022-10-09 10:40:07 +02:00
|
|
|
meta = with lib; {
|
2022-11-21 11:40:32 +01:00
|
|
|
homepage = "https://launchpad.net/spf-engine/";
|
2022-10-09 10:40:07 +02:00
|
|
|
description = "Postfix policy engine for Sender Policy Framework (SPF) checking";
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|