at master 43 lines 863 B view raw
1{ 2 lib, 3 buildPythonApplication, 4 fetchurl, 5 flit-core, 6 pyspf, 7 dnspython, 8 authres, 9 pymilter, 10}: 11 12buildPythonApplication rec { 13 pname = "spf-engine"; 14 version = "3.1.0"; 15 pyproject = true; 16 17 src = fetchurl { 18 url = "https://launchpad.net/${pname}/${lib.versions.majorMinor version}/${version}/+download/spf-engine-${version}.tar.gz"; 19 hash = "sha256-HUuMxYFCqItLFgMSnrkwfmJWqgFGyI1RWgmljb+jkWk="; 20 }; 21 22 nativeBuildInputs = [ flit-core ]; 23 24 propagatedBuildInputs = [ 25 pyspf 26 dnspython 27 authres 28 pymilter 29 ]; 30 31 pythonImportsCheck = [ 32 "spf_engine" 33 "spf_engine.milter_spf" 34 "spf_engine.policyd_spf" 35 ]; 36 37 meta = { 38 homepage = "https://launchpad.net/spf-engine/"; 39 description = "Postfix policy engine for Sender Policy Framework (SPF) checking"; 40 maintainers = [ ]; 41 license = lib.licenses.asl20; 42 }; 43}