504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ lib, fetchPypi, openssl, buildPythonPackage
|
|
, pytest, dnspython, pynacl, authres, python }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dkimpy";
|
|
version = "1.1.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-mmZ/hmS3Lrn4qhJQsHV8w5gqto9wxIrzkxe1jPYvLXU=";
|
|
};
|
|
|
|
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 = with lib; {
|
|
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 ];
|
|
};
|
|
}
|