mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
certbot: nixpkgs-fmt
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user