mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
31 lines
879 B
Nix
31 lines
879 B
Nix
{ lib, buildPythonApplication, fetchurl, pyspf, dnspython, authres, pymilter }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "spf-engine";
|
|
version = "2.9.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpad.net/${pname}/${lib.versions.majorMinor version}/${version}/+download/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-w0Nb+L/Os3KPApENoylxCVaCD4FvgmvpfVvwCkt2IDE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [ pyspf dnspython authres pymilter ];
|
|
|
|
pythonImportsCheck = [
|
|
"spf_engine"
|
|
"spf_engine.milter_spf"
|
|
"spf_engine.policyd_spf"
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "'/etc'" "'$out/etc'"
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|