Skip to content

Commit

Permalink
certbot: use python2
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Nov 8, 2016
1 parent 0674ed1 commit dd52569
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkgs/tools/admin/certbot/default.nix
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -11,7 +13,7 @@ pythonPackages.buildPythonApplication rec {
sha256 = "1x0prlldkgg0hxmya4m5h3k3c872wr0jylmzpr3m04mk339yiw0c";
};

propagatedBuildInputs = with pythonPackages; [
propagatedBuildInputs = with python2Packages; [
ConfigArgParse
acme
configobj
Expand All @@ -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"
Expand Down

0 comments on commit dd52569

Please sign in to comment.