about summary refs log tree commit diff
path: root/pkgs/tools/admin/certbot
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <me@tobias.gr>2016-05-16 22:39:34 +0200
committerTobias Geerinckx-Rice <me@tobias.gr>2016-05-21 13:52:28 +0200
commit9414e2d536cebf475e3d29f800e4e8cfe0b3334a (patch)
treeb658f0f8858d75ce005ddbd7a9668162693c3718 /pkgs/tools/admin/certbot
parent5940056af6918e19f446ea87a4fe6777aec9dfe6 (diff)
downloadnixlib-9414e2d536cebf475e3d29f800e4e8cfe0b3334a.tar
nixlib-9414e2d536cebf475e3d29f800e4e8cfe0b3334a.tar.gz
nixlib-9414e2d536cebf475e3d29f800e4e8cfe0b3334a.tar.bz2
nixlib-9414e2d536cebf475e3d29f800e4e8cfe0b3334a.tar.lz
nixlib-9414e2d536cebf475e3d29f800e4e8cfe0b3334a.tar.xz
nixlib-9414e2d536cebf475e3d29f800e4e8cfe0b3334a.tar.zst
nixlib-9414e2d536cebf475e3d29f800e4e8cfe0b3334a.zip
certbot: 0.5.0 -> 0.6.0; rename from letsencrypt
Diffstat (limited to 'pkgs/tools/admin/certbot')
-rw-r--r--pkgs/tools/admin/certbot/default.nix50
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/tools/admin/certbot/default.nix b/pkgs/tools/admin/certbot/default.nix
new file mode 100644
index 000000000000..80805666a3a4
--- /dev/null
+++ b/pkgs/tools/admin/certbot/default.nix
@@ -0,0 +1,50 @@
+{ stdenv, pythonPackages, fetchFromGitHub, dialog }:
+
+pythonPackages.buildPythonApplication rec {
+  name = "certbot-${version}";
+  version = "0.6.0";
+
+  src = fetchFromGitHub {
+    owner = "certbot";
+    repo = "certbot";
+    rev = "v${version}";
+    sha256 = "1x0prlldkgg0hxmya4m5h3k3c872wr0jylmzpr3m04mk339yiw0c";
+  };
+
+  propagatedBuildInputs = with pythonPackages; [
+    ConfigArgParse
+    acme
+    configobj
+    cryptography
+    parsedatetime
+    psutil
+    pyRFC3339
+    pyopenssl
+    python2-pythondialog
+    pytz
+    six
+    zope_component
+    zope_interface
+  ];
+  buildInputs = [ dialog ] ++ (with pythonPackages; [ nose mock gnureadline ]);
+
+  patchPhase = ''
+    substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail"
+    substituteInPlace certbot/le_util.py --replace "sw_vers" "/usr/bin/sw_vers"
+  '';
+
+  postInstall = ''
+    for i in $out/bin/*; do
+      wrapProgram "$i" --prefix PYTHONPATH : "$PYTHONPATH" \
+                       --prefix PATH : "${dialog}/bin:$PATH"
+    done
+  '';
+
+  meta = with stdenv.lib; {
+    homepage = src.meta.homepage;
+    description = "ACME client that can obtain certs and extensibly update server configurations";
+    platforms = platforms.unix;
+    maintainers = [ maintainers.domenkozar ];
+    license = licenses.asl20;
+  };
+}