2018-03-20 14:25:50 -07:00
|
|
|
{ stdenv, pythonPackages, fetchFromGitHub, dialog }:
|
2015-10-31 14:01:20 -07:00
|
|
|
|
2016-11-08 06:16:06 -08:00
|
|
|
# Latest version of certbot supports python3 and python3 version of pythondialog
|
|
|
|
|
2018-03-20 14:25:50 -07:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-05-16 13:39:34 -07:00
|
|
|
name = "certbot-${version}";
|
2018-04-11 01:56:24 -07:00
|
|
|
version = "0.23.0";
|
2015-12-04 23:34:50 -08:00
|
|
|
|
2016-01-03 16:54:22 -08:00
|
|
|
src = fetchFromGitHub {
|
2016-05-09 08:28:52 -07:00
|
|
|
owner = "certbot";
|
|
|
|
repo = "certbot";
|
2016-01-03 16:54:22 -08:00
|
|
|
rev = "v${version}";
|
2018-04-11 01:56:24 -07:00
|
|
|
sha256 = "0dv9d1byppnvx54rhi2w3gqjk01444m5hbr9553n9gin4ribviii";
|
2015-10-31 14:01:20 -07:00
|
|
|
};
|
|
|
|
|
2018-03-20 14:25:50 -07:00
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2016-01-03 16:54:22 -08:00
|
|
|
ConfigArgParse
|
|
|
|
acme
|
|
|
|
configobj
|
|
|
|
cryptography
|
|
|
|
parsedatetime
|
|
|
|
psutil
|
|
|
|
pyRFC3339
|
|
|
|
pyopenssl
|
|
|
|
python2-pythondialog
|
|
|
|
pytz
|
|
|
|
six
|
|
|
|
zope_component
|
|
|
|
zope_interface
|
2015-10-31 14:01:20 -07:00
|
|
|
];
|
2018-03-20 14:25:50 -07:00
|
|
|
buildInputs = [ dialog ] ++ (with pythonPackages; [ nose mock gnureadline ]);
|
2015-10-31 14:01:20 -07:00
|
|
|
|
|
|
|
patchPhase = ''
|
2017-01-29 02:11:01 -08:00
|
|
|
substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"
|
2016-12-13 03:00:27 -08:00
|
|
|
substituteInPlace certbot/util.py --replace "sw_vers" "/usr/bin/sw_vers"
|
2015-10-31 14:01:20 -07: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 08:28:52 -07:00
|
|
|
homepage = src.meta.homepage;
|
2015-10-31 14:01:20 -07:00
|
|
|
description = "ACME client that can obtain certs and extensibly update server configurations";
|
|
|
|
platforms = platforms.unix;
|
2016-05-17 04:57:28 -07:00
|
|
|
maintainers = [ maintainers.domenkozar ];
|
2015-10-31 14:05:12 -07:00
|
|
|
license = licenses.asl20;
|
2015-10-31 14:01:20 -07:00
|
|
|
};
|
|
|
|
}
|