depot/third_party/nixpkgs/pkgs/development/python-modules/dkimpy/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

53 lines
1.2 KiB
Nix

{
lib,
fetchPypi,
openssl,
buildPythonPackage,
pytest,
dnspython,
pynacl,
authres,
python,
}:
buildPythonPackage rec {
pname = "dkimpy";
version = "1.1.8";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-tfYPtHu/XY12LxNLzqDDiOumtJg0KmgqIfFoZUUJS3c=";
};
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 ];
};
}