mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 10:46:31 +01:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
52 lines
1.2 KiB
Nix
52 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 = {
|
|
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 convenient 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 = lib.licenses.bsd3;
|
|
};
|
|
}
|