1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/development/python-modules/dkimpy/default.nix
2020-01-06 01:37:10 -08:00

39 lines
1.2 KiB
Nix

{ stdenv, fetchPypi, openssl, buildPythonPackage
, pytest, dnspython, pynacl, authres, python }:
buildPythonPackage rec {
pname = "dkimpy";
version = "1.0.2";
src = fetchPypi {
inherit pname version;
sha256 = "19rz48pzz1i5cc896khaqx2hkhcj5hwsklnyynrdgdr5818qjyff";
};
checkInputs = [ 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 stdenv.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 ];
};
}