2016-01-04 00:54:22 +00:00
|
|
|
{ stdenv, pythonPackages, fetchFromGitHub, dialog }:
|
2015-10-31 21:01:20 +00:00
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2015-12-05 07:34:50 +00:00
|
|
|
name = "letsencrypt-${version}";
|
2016-01-04 00:54:22 +00:00
|
|
|
version = "0.4.0";
|
2015-12-05 07:34:50 +00:00
|
|
|
|
2016-01-04 00:54:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "letsencrypt";
|
|
|
|
repo = "letsencrypt";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0r2wis48w5nailzp2d5brkh2f40al6sbz816xx0akh3ll0rl1hbv";
|
2015-10-31 21:01:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2016-01-04 00:54:22 +00:00
|
|
|
ConfigArgParse
|
|
|
|
acme
|
|
|
|
configobj
|
|
|
|
cryptography
|
|
|
|
parsedatetime
|
|
|
|
psutil
|
|
|
|
pyRFC3339
|
|
|
|
pyopenssl
|
|
|
|
python2-pythondialog
|
|
|
|
pytz
|
|
|
|
six
|
|
|
|
zope_component
|
|
|
|
zope_interface
|
2015-10-31 21:01:20 +00:00
|
|
|
];
|
|
|
|
buildInputs = with pythonPackages; [ nose dialog ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace letsencrypt/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail"
|
2016-01-04 00:54:22 +00:00
|
|
|
substituteInPlace letsencrypt/le_util.py --replace "sw_vers" "/usr/bin/sw_vers"
|
2015-10-31 21:01:20 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|