depot/third_party/nixpkgs/pkgs/development/python-modules/dkimpy/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

38 lines
1.1 KiB
Nix

{ lib, fetchPypi, openssl, buildPythonPackage
, pytest, dnspython, pynacl, authres, python }:
buildPythonPackage rec {
pname = "dkimpy";
version = "1.1.4";
src = fetchPypi {
inherit pname version;
hash = "sha256-7bbng4OzpUx3K8n/eG5+7X12pXupRiCdmVG0P1BzqwI=";
};
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 ];
};
}