2016-01-04 01:54:22 +01:00
|
|
|
{ stdenv, pythonPackages, fetchFromGitHub, dialog }:
|
2015-10-31 22:01:20 +01:00
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2015-12-05 08:34:50 +01:00
|
|
|
name = "letsencrypt-${version}";
|
2016-05-09 17:28:52 +02:00
|
|
|
version = "0.5.0";
|
2015-12-05 08:34:50 +01:00
|
|
|
|
2016-01-04 01:54:22 +01:00
|
|
|
src = fetchFromGitHub {
|
2016-05-09 17:28:52 +02:00
|
|
|
owner = "certbot";
|
|
|
|
repo = "certbot";
|
2016-01-04 01:54:22 +01:00
|
|
|
rev = "v${version}";
|
2016-05-09 17:28:52 +02:00
|
|
|
sha256 = "0x098cdyfgqvh7x5d3sz56qjpjyg5b4fl82086sm43d8mbz0h5rm";
|
2015-10-31 22:01:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2016-01-04 01:54:22 +01:00
|
|
|
ConfigArgParse
|
|
|
|
acme
|
|
|
|
configobj
|
|
|
|
cryptography
|
|
|
|
parsedatetime
|
|
|
|
psutil
|
|
|
|
pyRFC3339
|
|
|
|
pyopenssl
|
|
|
|
python2-pythondialog
|
|
|
|
pytz
|
|
|
|
six
|
|
|
|
zope_component
|
|
|
|
zope_interface
|
2015-10-31 22:01:20 +01:00
|
|
|
];
|
2016-05-09 17:28:52 +02:00
|
|
|
buildInputs = [ dialog ] ++ (with pythonPackages; [ nose mock gnureadline ]);
|
2015-10-31 22:01:20 +01:00
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace letsencrypt/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail"
|
2016-01-04 01:54:22 +01:00
|
|
|
substituteInPlace letsencrypt/le_util.py --replace "sw_vers" "/usr/bin/sw_vers"
|
2015-10-31 22:01:20 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for i in $out/bin/*; do
|
|
|
|
wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix PATH : "${dialog}/bin:$PATH"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2016-05-09 17:28:52 +02:00
|
|
|
homepage = src.meta.homepage;
|
2015-10-31 22:01:20 +01:00
|
|
|
description = "ACME client that can obtain certs and extensibly update server configurations";
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.iElectric ];
|
2015-10-31 22:05:12 +01:00
|
|
|
license = licenses.asl20;
|
2015-10-31 22:01:20 +01:00
|
|
|
};
|
|
|
|
}
|