2016-11-08 14:16:06 +00:00
|
|
|
{ stdenv, python2Packages, fetchFromGitHub, dialog }:
|
2015-10-31 21:01:20 +00:00
|
|
|
|
2016-11-08 14:16:06 +00:00
|
|
|
# Latest version of certbot supports python3 and python3 version of pythondialog
|
|
|
|
|
|
|
|
python2Packages.buildPythonApplication rec {
|
2016-05-16 21:39:34 +01:00
|
|
|
name = "certbot-${version}";
|
2017-11-16 17:11:42 +00:00
|
|
|
version = "0.19.0";
|
2015-12-05 07:34:50 +00:00
|
|
|
|
2016-01-04 00:54:22 +00:00
|
|
|
src = fetchFromGitHub {
|
2016-05-09 16:28:52 +01:00
|
|
|
owner = "certbot";
|
|
|
|
repo = "certbot";
|
2016-01-04 00:54:22 +00:00
|
|
|
rev = "v${version}";
|
2017-11-16 17:11:42 +00:00
|
|
|
sha256 = "14i3q59v7j0q2pa1dri420fhil4h0vgl4vb471hp81f4y14gq6h7";
|
2015-10-31 21:01:20 +00:00
|
|
|
};
|
|
|
|
|
2016-11-08 14:16:06 +00:00
|
|
|
propagatedBuildInputs = with python2Packages; [
|
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
|
|
|
];
|
2016-11-08 14:16:06 +00:00
|
|
|
buildInputs = [ dialog ] ++ (with python2Packages; [ nose mock gnureadline ]);
|
2015-10-31 21:01:20 +00:00
|
|
|
|
|
|
|
patchPhase = ''
|
2017-01-29 10:11:01 +00:00
|
|
|
substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"
|
2016-12-13 11:00:27 +00:00
|
|
|
substituteInPlace certbot/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; {
|
2016-05-09 16:28:52 +01:00
|
|
|
homepage = src.meta.homepage;
|
2015-10-31 21:01:20 +00:00
|
|
|
description = "ACME client that can obtain certs and extensibly update server configurations";
|
|
|
|
platforms = platforms.unix;
|
2016-05-17 12:57:28 +01:00
|
|
|
maintainers = [ maintainers.domenkozar ];
|
2015-10-31 21:05:12 +00:00
|
|
|
license = licenses.asl20;
|
2015-10-31 21:01:20 +00:00
|
|
|
};
|
|
|
|
}
|