2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchPypi, openssl, buildPythonPackage
|
2018-07-08 12:23:17 +00:00
|
|
|
, pytest, dnspython, pynacl, authres, python }:
|
2017-04-20 18:22:21 +00:00
|
|
|
|
2018-07-08 12:23:17 +00:00
|
|
|
buildPythonPackage rec {
|
2018-06-23 13:27:58 +00:00
|
|
|
pname = "dkimpy";
|
2019-09-28 10:15:59 +00:00
|
|
|
version = "0.9.3";
|
2017-04-20 18:22:21 +00:00
|
|
|
|
2018-07-08 12:23:17 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-09-28 10:15:59 +00:00
|
|
|
sha256 = "1rnnax2blmwk6404yrnhswp50xbp2h192rd2l6mra5lh3rg36zvd";
|
2018-07-08 12:23:17 +00:00
|
|
|
};
|
2017-04-20 18:22:21 +00:00
|
|
|
|
2018-06-23 13:27:58 +00:00
|
|
|
checkInputs = [ pytest ];
|
2018-07-08 12:23:17 +00:00
|
|
|
propagatedBuildInputs = [ openssl dnspython pynacl authres ];
|
2017-04-20 18:22:21 +00:00
|
|
|
|
2017-07-08 23:32:01 +00:00
|
|
|
patchPhase = ''
|
2018-07-08 12:23:17 +00:00
|
|
|
substituteInPlace dkim/dknewkey.py --replace \
|
2017-07-08 23:32:01 +00:00
|
|
|
/usr/bin/openssl ${openssl}/bin/openssl
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkPhase = ''
|
2018-07-08 12:23:17 +00:00
|
|
|
${python.interpreter} ./test.py
|
2017-07-08 23:32:01 +00:00
|
|
|
'';
|
2017-04-20 18:22:21 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "DKIM + ARC email signing/verification tools + Python module";
|
2017-07-08 23:32:01 +00:00
|
|
|
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.
|
2017-04-20 18:22:21 +00:00
|
|
|
'';
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = https://launchpad.net/dkimpy;
|
2017-04-20 18:22:21 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ leenaars ];
|
|
|
|
};
|
|
|
|
}
|