Merge pull request #92696 from flokli/certbot-1.6.0

certbot: 1.3.0 -> 1.6.0
This commit is contained in:
Félix Baylac-Jacqué 2020-07-09 11:55:41 +02:00 committed by GitHub
commit 074d131979
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 113 additions and 64 deletions

View File

@ -0,0 +1,35 @@
{ buildPythonPackage
, acme
, certbot
, cloudflare
, isPy3k
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
inherit (certbot) src version;
pname = "certbot-dns-cloudflare";
propagatedBuildInputs = [
acme
certbot
cloudflare
];
checkInputs = [
pytest
pytestCheckHook
];
disabled = !isPy3k;
pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ];
sourceRoot = "source/${pname}";
meta = certbot.meta // {
description = "Cloudflare DNS Authenticator plugin for Certbot";
};
}

View File

@ -0,0 +1,35 @@
{ buildPythonPackage
, acme
, certbot
, dnspython
, isPy3k
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
inherit (certbot) src version;
pname = "certbot-dns-rfc2136";
propagatedBuildInputs = [
acme
certbot
dnspython
];
checkInputs = [
pytest
pytestCheckHook
];
disabled = !isPy3k;
pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ];
sourceRoot = "source/${pname}";
meta = certbot.meta // {
description = "RFC 2136 DNS Authenticator plugin for Certbot";
};
}

View File

@ -0,0 +1,35 @@
{ buildPythonPackage
, acme
, boto3
, certbot
, isPy3k
, pytest
, pytestCheckHook
}:
buildPythonPackage rec {
inherit (certbot) src version;
pname = "certbot-dns-route53";
propagatedBuildInputs = [
acme
boto3
certbot
];
checkInputs = [
pytest
pytestCheckHook
];
disabled = !isPy3k;
pytestFlagsArray = [ "-o cache_dir=$(mktemp -d)" ];
sourceRoot = "source/${pname}";
meta = certbot.meta // {
description = "Route53 DNS Authenticator plugin for Certbot";
};
}

View File

@ -1,58 +0,0 @@
From 0de195de31dc311976af52a7c2b547bc23af2691 Mon Sep 17 00:00:00 2001
From: Frederik Rietdijk <fridh@fridh.nl>
Date: Sat, 14 Dec 2019 19:27:14 +0100
Subject: [PATCH] Don't use distutils.StrictVersion that cannot handle certain
versions
```
File "setup.py", line 63, in <module>
if StrictVersion(setuptools_version) >= StrictVersion('36.2'):
File
"/nix/store/zdh16dcvjw99ybam59zd2ijb6bx138j0-python3-3.7.5/lib/python3.7/distutils/version.py",
line 40, in __init__
self.parse(vstring)
File
"/nix/store/zdh16dcvjw99ybam59zd2ijb6bx138j0-python3-3.7.5/lib/python3.7/distutils/version.py",
line 137, in parse
raise ValueError("invalid version number '%s'" % vstring)
ValueError: invalid version number '41.4.0.post20191022'
```
---
certbot/setup.py | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/certbot/setup.py b/certbot/setup.py
index d19327e5e..ac1524793 100644
--- a/certbot/setup.py
+++ b/certbot/setup.py
@@ -1,5 +1,4 @@
import codecs
-from distutils.version import StrictVersion
import os
import re
import sys
@@ -58,20 +57,8 @@ install_requires = [
# Add pywin32 on Windows platforms to handle low-level system calls.
# This dependency needs to be added using environment markers to avoid its installation on Linux.
-# However environment markers are supported only with setuptools >= 36.2.
-# So this dependency is not added for old Linux distributions with old setuptools,
-# in order to allow these systems to build certbot from sources.
pywin32_req = 'pywin32>=227' # do not forget to edit pywin32 dependency accordingly in windows-installer/construct.py
-if StrictVersion(setuptools_version) >= StrictVersion('36.2'):
- install_requires.append(pywin32_req + " ; sys_platform == 'win32'")
-elif 'bdist_wheel' in sys.argv[1:]:
- raise RuntimeError('Error, you are trying to build certbot wheels using an old version '
- 'of setuptools. Version 36.2+ of setuptools is required.')
-elif os.name == 'nt':
- # This branch exists to improve this package's behavior on Windows. Without
- # it, if the sdist is installed on Windows with an old version of
- # setuptools, pywin32 will not be specified as a dependency.
- install_requires.append(pywin32_req)
+install_requires.append(pywin32_req + " ; sys_platform == 'win32'")
dev_extras = [
'coverage',
--
2.24.1

View File

@ -8,19 +8,15 @@
buildPythonApplication rec {
pname = "certbot";
version = "1.3.0";
version = "1.6.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1nzp1l63f64qqp89y1vyd4lgfhykfp5dkr6iwfiyf273y7sjwpsa";
sha256 = "1y0m5qm853i6pcpb2mrf8kjkr9wr80mdrx1qmck38ayvr2v2p5lc";
};
patches = [
./0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patch
];
propagatedBuildInputs = [
ConfigArgParse
acme

View File

@ -579,6 +579,12 @@ in {
cdecimal = callPackage ../development/python-modules/cdecimal { };
certbot-dns-cloudflare = callPackage ../development/python-modules/certbot-dns-cloudflare { };
certbot-dns-rfc2136 = callPackage ../development/python-modules/certbot-dns-rfc2136 { };
certbot-dns-route53 = callPackage ../development/python-modules/certbot-dns-route53 { };
cfn-flip = callPackage ../development/python-modules/cfn-flip { };
chalice = callPackage ../development/python-modules/chalice { };