1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/dkimpy/default.nix

39 lines
1.2 KiB
Nix
Raw Normal View History

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