nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ buildPythonPackage, fetchPypi, isPy27, lib
2, authres, dnspython, dkimpy, ipaddress, publicsuffix2
3}:
4
5buildPythonPackage rec {
6 pname = "authheaders";
7 version = "0.15.1";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "sha256-90rOvu+CbHtammrMDZpPx7rIboIT2X/jL1GtfjpmuOk=";
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}