nixpkgs/pkgs/servers/mail/spf-engine/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
865 B
Nix
Raw Normal View History

2023-09-10 00:51:32 +02:00
{ lib, buildPythonApplication, fetchurl, flit-core, pyspf, dnspython, authres, pymilter }:
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";
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=";
};
2023-09-10 00:51:32 +02:00
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [ pyspf dnspython authres pymilter ];
2022-11-21 11:40:32 +01:00
pythonImportsCheck = [
"spf_engine"
"spf_engine.milter_spf"
"spf_engine.policyd_spf"
];
meta = with lib; {
2022-11-21 11:40:32 +01:00
homepage = "https://launchpad.net/spf-engine/";
description = "Postfix policy engine for Sender Policy Framework (SPF) checking";
maintainers = with maintainers; [ abbradar ];
license = licenses.asl20;
};
}