certbot: use python2

This commit is contained in:
Frederik Rietdijk 2016-11-08 15:16:06 +01:00
parent 0674ed1b6b
commit dd5256993e

View File

@ -1,6 +1,8 @@
{ stdenv, pythonPackages, fetchFromGitHub, dialog }: { stdenv, python2Packages, fetchFromGitHub, dialog }:
pythonPackages.buildPythonApplication rec { # Latest version of certbot supports python3 and python3 version of pythondialog
python2Packages.buildPythonApplication rec {
name = "certbot-${version}"; name = "certbot-${version}";
version = "0.6.0"; version = "0.6.0";
@ -11,7 +13,7 @@ pythonPackages.buildPythonApplication rec {
sha256 = "1x0prlldkgg0hxmya4m5h3k3c872wr0jylmzpr3m04mk339yiw0c"; sha256 = "1x0prlldkgg0hxmya4m5h3k3c872wr0jylmzpr3m04mk339yiw0c";
}; };
propagatedBuildInputs = with pythonPackages; [ propagatedBuildInputs = with python2Packages; [
ConfigArgParse ConfigArgParse
acme acme
configobj configobj
@ -26,7 +28,7 @@ pythonPackages.buildPythonApplication rec {
zope_component zope_component
zope_interface zope_interface
]; ];
buildInputs = [ dialog ] ++ (with pythonPackages; [ nose mock gnureadline ]); buildInputs = [ dialog ] ++ (with python2Packages; [ nose mock gnureadline ]);
patchPhase = '' patchPhase = ''
substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail" substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail"