about summary refs log tree commit diff
path: root/pkgs/development/python-modules/certbot
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2022-10-12 11:03:24 +0200
committerFlorian Klink <flokli@flokli.de>2022-10-12 11:03:24 +0200
commit9017c2b775dfbd894d1a248511749b5ad06a2ac0 (patch)
treea0177934e68965b07d60e474456a3739b7c43d71 /pkgs/development/python-modules/certbot
parente10c414dd7574c294e700a4b9c38f402a9716ce6 (diff)
certbot: nixpkgs-fmt
Diffstat (limited to 'pkgs/development/python-modules/certbot')
-rw-r--r--pkgs/development/python-modules/certbot/default.nix43
1 files changed, 31 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/certbot/default.nix b/pkgs/development/python-modules/certbot/default.nix
index 8bef6cf2148e7..498dcf23b11ad 100644
--- a/pkgs/development/python-modules/certbot/default.nix
+++ b/pkgs/development/python-modules/certbot/default.nix
@@ -1,10 +1,27 @@
 { lib
 , buildPythonPackage
-, python, runCommand
+, python
+, runCommand
 , fetchFromGitHub
-, configargparse, acme, configobj, cryptography, distro, josepy, parsedatetime, pyRFC3339, pyopenssl, pytz, requests, six, zope_component, zope_interface
-, dialog, gnureadline
-, pytest-xdist, pytestCheckHook, python-dateutil
+, configargparse
+, acme
+, configobj
+, cryptography
+, distro
+, josepy
+, parsedatetime
+, pyRFC3339
+, pyopenssl
+, pytz
+, requests
+, six
+, zope_component
+, zope_interface
+, dialog
+, gnureadline
+, pytest-xdist
+, pytestCheckHook
+, python-dateutil
 }:
 
 buildPythonPackage rec {
@@ -59,15 +76,17 @@ buildPythonPackage rec {
   # certbot.withPlugins has a similar calling convention as python*.withPackages
   # it gets invoked with a lambda, and invokes that lambda with the python package set matching certbot's:
   # certbot.withPlugins (cp: [ cp.certbot-dns-foo ])
-  passthru.withPlugins = f: let
-    pythonEnv = python.withPackages f;
+  passthru.withPlugins = f:
+    let
+      pythonEnv = python.withPackages f;
 
-  in runCommand "certbot-with-plugins" {
-  } ''
-    mkdir -p $out/bin
-    cd $out/bin
-    ln -s ${pythonEnv}/bin/certbot
-  '';
+    in
+    runCommand "certbot-with-plugins"
+      { } ''
+      mkdir -p $out/bin
+      cd $out/bin
+      ln -s ${pythonEnv}/bin/certbot
+    '';
 
   meta = with lib; {
     homepage = src.meta.homepage;