Merge pull request #81196 from prusnak/certbot

certbot: 1.0.0 -> 1.3.0
This commit is contained in:
Marek Mahut 2020-04-04 08:18:20 +02:00 committed by GitHub
commit b6dbef4759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 28 deletions

View File

@ -22,18 +22,16 @@ ValueError: invalid version number '41.4.0.post20191022'
1 file changed, 1 insertion(+), 14 deletions(-) 1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/certbot/setup.py b/certbot/setup.py diff --git a/certbot/setup.py b/certbot/setup.py
index c1bf914..7456bf2 100644 index d19327e5e..ac1524793 100644
--- a/certbot/setup.py --- a/certbot/setup.py
+++ b/certbot/setup.py +++ b/certbot/setup.py
@@ -3,7 +3,6 @@ import os @@ -1,5 +1,4 @@
import codecs
-from distutils.version import StrictVersion
import os
import re import re
import sys import sys
@@ -58,20 +57,8 @@ install_requires = [
-from distutils.version import StrictVersion
from setuptools import find_packages, setup, __version__ as setuptools_version
from setuptools.command.test import test as TestCommand
@@ -56,20 +55,8 @@ install_requires = [
# Add pywin32 on Windows platforms to handle low-level system calls. # 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. # This dependency needs to be added using environment markers to avoid its installation on Linux.
@ -54,7 +52,7 @@ index c1bf914..7456bf2 100644
+install_requires.append(pywin32_req + " ; sys_platform == 'win32'") +install_requires.append(pywin32_req + " ; sys_platform == 'win32'")
dev_extras = [ dev_extras = [
'astroid==1.6.5', 'coverage',
-- --
2.24.1 2.24.1

View File

@ -1,22 +1,27 @@
{ stdenv, python37Packages, fetchFromGitHub, fetchurl, dialog, autoPatchelfHook }: { lib
, buildPythonApplication
, fetchFromGitHub
, ConfigArgParse, acme, configobj, cryptography, distro, josepy, parsedatetime, pyRFC3339, pyopenssl, pytz, requests, six, zope_component, zope_interface
, dialog, mock, gnureadline
, pytest_xdist, pytest, dateutil
}:
buildPythonApplication rec {
python37Packages.buildPythonApplication rec {
pname = "certbot"; pname = "certbot";
version = "1.0.0"; version = "1.3.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = pname; owner = pname;
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "180x7gcpfbrzw8k654s7b5nxdy2yg61lq513dykyn3wz4gssw465"; sha256 = "1nzp1l63f64qqp89y1vyd4lgfhykfp5dkr6iwfiyf273y7sjwpsa";
}; };
patches = [ patches = [
./0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patch ./0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patch
]; ];
propagatedBuildInputs = with python37Packages; [ propagatedBuildInputs = [
ConfigArgParse ConfigArgParse
acme acme
configobj configobj
@ -24,26 +29,21 @@ python37Packages.buildPythonApplication rec {
distro distro
josepy josepy
parsedatetime parsedatetime
psutil
pyRFC3339 pyRFC3339
pyopenssl pyopenssl
pytz pytz
requests
six six
zope_component zope_component
zope_interface zope_interface
]; ];
buildInputs = [ dialog ] ++ (with python37Packages; [ mock gnureadline ]); buildInputs = [ dialog mock gnureadline ];
checkInputs = with python37Packages; [ checkInputs = [ pytest_xdist pytest dateutil ];
pytest_xdist
pytest
dateutil
];
postPatch = '' preBuild = ''
cd certbot cd certbot
substituteInPlace certbot/_internal/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"
''; '';
postInstall = '' postInstall = ''
@ -55,11 +55,11 @@ python37Packages.buildPythonApplication rec {
doCheck = true; doCheck = true;
meta = with stdenv.lib; { meta = with lib; {
homepage = src.meta.homepage; homepage = src.meta.homepage;
description = "ACME client that can obtain certs and extensibly update server configurations"; description = "ACME client that can obtain certs and extensibly update server configurations";
platforms = platforms.unix; platforms = platforms.unix;
maintainers = [ maintainers.domenkozar ]; maintainers = with maintainers; [ domenkozar ];
license = licenses.asl20; license = with licenses; [ asl20 ];
}; };
} }

View File

@ -11236,7 +11236,7 @@ in
ogre = ogre1_10; ogre = ogre1_10;
}; };
certbot = callPackage ../tools/admin/certbot { }; certbot = python3Packages.callPackage ../tools/admin/certbot { };
caf = callPackage ../development/libraries/caf {}; caf = callPackage ../development/libraries/caf {};