2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchPypi, openssl, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest, dnspython, pynacl, authres, python }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dkimpy";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "1.1.5";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-mmZ/hmS3Lrn4qhJQsHV8w5gqto9wxIrzkxe1jPYvLXU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ openssl dnspython pynacl authres ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|