depot/third_party/nixpkgs/pkgs/servers/mail/spf-engine/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

27 lines
811 B
Nix

{ lib, buildPythonApplication, fetchurl, pyspf, dnspython, authres, pymilter }:
buildPythonApplication rec {
pname = "spf-engine";
version = "3.0.4";
format = "flit";
src = fetchurl {
url = "https://launchpad.net/${pname}/${lib.versions.majorMinor version}/${version}/+download/${pname}-${version}.tar.gz";
sha256 = "sha256-Gcw7enNIb/TrZEYa0Z04ezHUmfMmc1J+aEH6FlXbhTo=";
};
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;
};
}