about summary refs log tree commit diff
path: root/pkgs/development/python-modules/certbot
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2020-07-10 00:05:48 +0200
committerFlorian Klink <flokli@flokli.de>2020-07-22 12:06:03 +0200
commit8ad62167e82cc6fb43c044a157da1387fa29eea2 (patch)
tree423fbd9278c1fd4c6f1d544b773624042ace2cc4 /pkgs/development/python-modules/certbot
parent391a5fdc5b50f83b749d34e15964a068a4dc1f2f (diff)
certbot: move to python package set, cleanup
Diffstat (limited to 'pkgs/development/python-modules/certbot')
-rw-r--r--pkgs/development/python-modules/certbot/default.nix61
1 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/certbot/default.nix b/pkgs/development/python-modules/certbot/default.nix
new file mode 100644
index 0000000000000..335e62e6a8b8b
--- /dev/null
+++ b/pkgs/development/python-modules/certbot/default.nix
@@ -0,0 +1,61 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, ConfigArgParse, acme, configobj, cryptography, distro, josepy, parsedatetime, pyRFC3339, pyopenssl, pytz, requests, six, zope_component, zope_interface
+, dialog, mock, gnureadline
+, pytest_xdist, pytest, pytestCheckHook, dateutil
+}:
+
+buildPythonPackage rec {
+  pname = "certbot";
+  version = "1.6.0";
+
+  src = fetchFromGitHub {
+    owner = pname;
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1y0m5qm853i6pcpb2mrf8kjkr9wr80mdrx1qmck38ayvr2v2p5lc";
+  };
+
+  sourceRoot = "source/${pname}";
+
+  propagatedBuildInputs = [
+    ConfigArgParse
+    acme
+    configobj
+    cryptography
+    distro
+    josepy
+    parsedatetime
+    pyRFC3339
+    pyopenssl
+    pytz
+    requests
+    six
+    zope_component
+    zope_interface
+  ];
+
+  buildInputs = [ dialog mock gnureadline ];
+
+  checkInputs = [
+    dateutil
+    pytest
+    pytestCheckHook
+    pytest_xdist
+  ];
+
+  pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ];
+
+  doCheck = true;
+
+  makeWrapperArgs = [ "--prefix PATH : ${dialog}/bin" ];
+
+  meta = with lib; {
+    homepage = src.meta.homepage;
+    description = "ACME client that can obtain certs and extensibly update server configurations";
+    platforms = platforms.unix;
+    maintainers = with maintainers; [ domenkozar ];
+    license = with licenses; [ asl20 ];
+  };
+}