diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2016-11-08 15:16:06 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2016-11-08 22:48:54 +0100 |
commit | dd5256993e902787c4e0d6faf664f6d22a25e653 (patch) | |
tree | de41e40649538c42a7e4e02f1e0ca4c4c6719982 /pkgs/tools/admin | |
parent | 0674ed1b6b501e6df294c130103af77940af51e5 (diff) | |
download | nixlib-dd5256993e902787c4e0d6faf664f6d22a25e653.tar nixlib-dd5256993e902787c4e0d6faf664f6d22a25e653.tar.gz nixlib-dd5256993e902787c4e0d6faf664f6d22a25e653.tar.bz2 nixlib-dd5256993e902787c4e0d6faf664f6d22a25e653.tar.lz nixlib-dd5256993e902787c4e0d6faf664f6d22a25e653.tar.xz nixlib-dd5256993e902787c4e0d6faf664f6d22a25e653.tar.zst nixlib-dd5256993e902787c4e0d6faf664f6d22a25e653.zip |
certbot: use python2
Diffstat (limited to 'pkgs/tools/admin')
-rw-r--r-- | pkgs/tools/admin/certbot/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/tools/admin/certbot/default.nix b/pkgs/tools/admin/certbot/default.nix index 80805666a3a4..998b8d2e13de 100644 --- a/pkgs/tools/admin/certbot/default.nix +++ b/pkgs/tools/admin/certbot/default.nix @@ -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}"; version = "0.6.0"; @@ -11,7 +13,7 @@ pythonPackages.buildPythonApplication rec { sha256 = "1x0prlldkgg0hxmya4m5h3k3c872wr0jylmzpr3m04mk339yiw0c"; }; - propagatedBuildInputs = with pythonPackages; [ + propagatedBuildInputs = with python2Packages; [ ConfigArgParse acme configobj @@ -26,7 +28,7 @@ pythonPackages.buildPythonApplication rec { zope_component zope_interface ]; - buildInputs = [ dialog ] ++ (with pythonPackages; [ nose mock gnureadline ]); + buildInputs = [ dialog ] ++ (with python2Packages; [ nose mock gnureadline ]); patchPhase = '' substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail" |