2019-02-04 03:11:03 +00:00
|
|
|
{ stdenv, python3Packages, fetchFromGitHub, dialog }:
|
2015-10-31 21:01:20 +00:00
|
|
|
|
2019-02-04 03:11:03 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "certbot";
|
2019-02-12 10:38:43 +00:00
|
|
|
version = "0.31.0";
|
2015-12-05 07:34:50 +00:00
|
|
|
|
2016-01-04 00:54:22 +00:00
|
|
|
src = fetchFromGitHub {
|
2019-02-04 03:11:03 +00:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2016-01-04 00:54:22 +00:00
|
|
|
rev = "v${version}";
|
2019-02-12 10:38:43 +00:00
|
|
|
sha256 = "0rwjxmkpicyc9a5janvj1lfi430nq6ha94nyfgp11ds9fyydbh1s";
|
2015-10-31 21:01:20 +00:00
|
|
|
};
|
|
|
|
|
2019-02-04 03:11:03 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2016-01-04 00:54:22 +00:00
|
|
|
ConfigArgParse
|
|
|
|
acme
|
|
|
|
configobj
|
|
|
|
cryptography
|
2019-02-04 03:11:03 +00:00
|
|
|
josepy
|
2016-01-04 00:54:22 +00:00
|
|
|
parsedatetime
|
|
|
|
psutil
|
|
|
|
pyRFC3339
|
|
|
|
pyopenssl
|
|
|
|
pytz
|
|
|
|
six
|
|
|
|
zope_component
|
|
|
|
zope_interface
|
2015-10-31 21:01:20 +00:00
|
|
|
];
|
2019-02-04 03:11:03 +00:00
|
|
|
buildInputs = [ dialog ] ++ (with python3Packages; [ 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
|
|
|
|
'';
|
|
|
|
|
2018-06-03 21:41:36 +01:00
|
|
|
doCheck = !stdenv.isDarwin; # On Hydra Darwin tests fail with "Too many open files".
|
|
|
|
|
2015-10-31 21:01:20 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|