blob: e3a97d08e5c5be03759b11fce9cbc991a34e98d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
fetchPypi,
openssl,
buildPythonPackage,
pytest,
dnspython,
pynacl,
authres,
python,
}:
buildPythonPackage rec {
pname = "dkimpy";
version = "1.1.8";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-tfYPtHu/XY12LxNLzqDDiOumtJg0KmgqIfFoZUUJS3c=";
};
nativeCheckInputs = [ pytest ];
propagatedBuildInputs = [
openssl
dnspython
pynacl
authres
];
patchPhase = ''
substituteInPlace dkim/dknewkey.py --replace \
/usr/bin/openssl ${openssl}/bin/openssl
'';
checkPhase = ''
${python.interpreter} ./test.py
'';
meta = {
description = "DKIM + ARC email signing/verification tools + Python module";
longDescription = ''
Python module that implements DKIM (DomainKeys Identified Mail) email
signing and verification. It also provides a number of convenient tools
for command line signing and verification, as well as generating new DKIM
records. This version also supports the experimental Authenticated
Received Chain (ARC) protocol.
'';
homepage = "https://launchpad.net/dkimpy";
license = lib.licenses.bsd3;
};
}
|