Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / dkimpy / default.nix
blob6b639f8cc8c3e58c1cb0c09d79c167999cd6fb0b
1 { lib, fetchPypi, openssl, buildPythonPackage
2 , pytest, dnspython, pynacl, authres, python }:
4 buildPythonPackage rec {
5   pname = "dkimpy";
6   version = "1.1.5";
7   format = "setuptools";
9   src = fetchPypi {
10     inherit pname version;
11     hash = "sha256-mmZ/hmS3Lrn4qhJQsHV8w5gqto9wxIrzkxe1jPYvLXU=";
14   nativeCheckInputs = [ pytest ];
15   propagatedBuildInputs =  [ openssl dnspython pynacl authres ];
17   patchPhase = ''
18     substituteInPlace dkim/dknewkey.py --replace \
19       /usr/bin/openssl ${openssl}/bin/openssl
20   '';
22   checkPhase = ''
23     ${python.interpreter} ./test.py
24   '';
26   meta = with lib; {
27     description = "DKIM + ARC email signing/verification tools + Python module";
28     longDescription = ''
29       Python module that implements DKIM (DomainKeys Identified Mail) email
30       signing and verification. It also provides a number of convŃ”nient tools
31       for command line signing and verification, as well as generating new DKIM
32       records. This version also supports the experimental Authenticated
33       Received Chain (ARC) protocol.
34     '';
35     homepage = "https://launchpad.net/dkimpy";
36     license = licenses.bsd3;
37     maintainers = with maintainers; [ leenaars ];
38   };