2015-10-31 21:01:20 +00:00
|
|
|
{ stdenv, pythonPackages, fetchurl, dialog }:
|
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2015-12-05 07:34:50 +00:00
|
|
|
version = "0.1.0";
|
|
|
|
name = "letsencrypt-${version}";
|
|
|
|
|
2015-10-31 21:01:20 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/letsencrypt/letsencrypt/archive/v${version}.tar.gz";
|
2015-12-03 19:55:51 +00:00
|
|
|
sha256 = "056y5bsmpc4ya5xxals4ypzsm927j6n5kwby3bjc03sy3sscf6hw";
|
2015-10-31 21:01:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
|
|
zope_interface zope_component six requests2 pytz pyopenssl psutil mock acme
|
|
|
|
cryptography configobj pyRFC3339 python2-pythondialog parsedatetime ConfigArgParse
|
|
|
|
];
|
|
|
|
buildInputs = with pythonPackages; [ nose dialog ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace letsencrypt/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix PATH : "${dialog}/bin:$PATH"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/letsencrypt/letsencrypt;
|
|
|
|
description = "ACME client that can obtain certs and extensibly update server configurations";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.iElectric ];
|
2015-10-31 21:05:12 +00:00
|
|
|
license = licenses.asl20;
|
2015-10-31 21:01:20 +00:00
|
|
|
};
|
|
|
|
}
|