2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchPypi,
|
|
|
|
openssl,
|
|
|
|
buildPythonPackage,
|
|
|
|
pytest,
|
|
|
|
dnspython,
|
|
|
|
pynacl,
|
|
|
|
authres,
|
|
|
|
python,
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dkimpy";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.1.6";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-DOctlh9EPo+fBWlLNUVC3uU04I4rjFtgxi1drKfB2g8=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
openssl
|
|
|
|
dnspython
|
|
|
|
pynacl
|
|
|
|
authres
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace dkim/dknewkey.py --replace \
|
|
|
|
/usr/bin/openssl ${openssl}/bin/openssl
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} ./test.py
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 convєnient 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 = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|