1{ buildPythonPackage, fetchPypi, isPy27, lib 2, authres, dnspython, dkimpy, ipaddress, publicsuffix2 3}: 4 5buildPythonPackage rec { 6 pname = "authheaders"; 7 version = "0.14.1"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "4e601b5b54080019a2f548fadf80ddf9c5538615607c7fb602936404aafe67e2"; 12 }; 13 14 propagatedBuildInputs = [ authres dnspython dkimpy publicsuffix2 ] 15 ++ lib.optional isPy27 ipaddress; 16 17 meta = { 18 description = "Python library for the generation of email authentication headers"; 19 homepage = "https://github.com/ValiMail/authentication-headers"; 20 license = lib.licenses.mit; 21 }; 22}