acme, certbot: 0.29.1 -> 0.30.2

* move to python3
* touchup deps
This commit is contained in:
Will Dietz 2019-02-03 21:11:03 -06:00
parent 44c84d10f3
commit e79e038b09

View file

@ -1,34 +1,32 @@
{ stdenv, pythonPackages, fetchFromGitHub, dialog }:
{ stdenv, python3Packages, fetchFromGitHub, dialog }:
# Latest version of certbot supports python3 and python3 version of pythondialog
pythonPackages.buildPythonApplication rec {
name = "certbot-${version}";
version = "0.29.1";
python3Packages.buildPythonApplication rec {
pname = "certbot";
version = "0.30.2";
src = fetchFromGitHub {
owner = "certbot";
repo = "certbot";
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "13gnqkvmh6mmlqsf18pw0wv6rp8fy0nbqhpw0sv3shkv7iqsmh2k";
sha256 = "0lycmxc6y7mk18irv8qdasw6hsqiiw5p34950h2f5s3vjc09wnw3";
};
propagatedBuildInputs = with pythonPackages; [
propagatedBuildInputs = with python3Packages; [
ConfigArgParse
acme
configobj
cryptography
josepy
parsedatetime
psutil
pyRFC3339
pyopenssl
python2-pythondialog
pytz
six
zope_component
zope_interface
];
buildInputs = [ dialog ] ++ (with pythonPackages; [ nose mock gnureadline ]);
buildInputs = [ dialog ] ++ (with python3Packages; [ mock gnureadline ]);
patchPhase = ''
substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"