2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchPypi, openssl, buildPythonPackage
|
2020-04-24 23:36:52 +00:00
|
|
|
, pytest, dnspython, pynacl, authres, python }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dkimpy";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "1.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "9a2420bf09af686736773153fca32a02ae11ecbe24b540c26104628959f91121";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest ];
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|