forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#25021 from leenaars/dkimpy
pythonPackages.dkimpy: init -> 0.6.1
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ stdenv, fetchurl, openssl, makeWrapper, buildPythonApplication | ||
, pytest, dns }: | ||
|
||
buildPythonApplication rec { | ||
name = "${pname}-${majorversion}.${minorversion}"; | ||
pname = "dkimpy"; | ||
majorversion = "0.6"; | ||
minorversion = "1"; | ||
|
||
src = fetchurl { | ||
url = "https://launchpad.net/${pname}/${majorversion}/${majorversion}.${minorversion}/+download/${name}.tar.gz"; | ||
sha256 = "0zmvyw18ww1jqrbqws636w3xki59fyqva553r6s74q5c4jvy36v2"; | ||
}; | ||
|
||
buildInputs = [ pytest ]; | ||
propagatedBuildInputs = [ openssl dns ]; | ||
|
||
patchPhase = ''substituteInPlace dknewkey.py --replace \ | ||
/usr/bin/openssl ${openssl}/bin/openssl | ||
''; | ||
|
||
postInstall = '' | ||
mkdir -p $out/bin $out/libexec | ||
mv $out/bin/*.py $out/libexec | ||
makeWrapper "$out/libexec/dkimverify.py" $out/bin/dkimverify | ||
makeWrapper "$out/libexec/dkimsign.py" $out/bin/dkimsign | ||
makeWrapper "$out/libexec/arcverify.py" $out/bin/arcverify | ||
makeWrapper "$out/libexec/arcsign.py" $out/bin/arcsign | ||
makeWrapper "$out/libexec/dknewkey.py" $out/bin/dknewkey | ||
''; | ||
|
||
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters