diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/dkimpy/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/dkimpy/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/dkimpy/default.nix b/nixpkgs/pkgs/development/python-modules/dkimpy/default.nix new file mode 100644 index 000000000000..ef0a6f907412 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/dkimpy/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchPypi, openssl, buildPythonPackage +, pytest, dnspython, pynacl, authres, python }: + +buildPythonPackage rec { + pname = "dkimpy"; + version = "0.9.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "83d5ddc1b83304dbccba1dc7b9e0ee37bec4269bb9ad5779480991525c3811d6"; +}; + + 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 ]; + }; +} |