Merge pull request #81196 from prusnak/certbot

certbot: 1.0.0 -> 1.3.0

+7 -9
pkgs/tools/admin/certbot/0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patch
···
1 file changed, 1 insertion(+), 14 deletions(-)
diff --git a/certbot/setup.py b/certbot/setup.py
-
index c1bf914..7456bf2 100644
+
index d19327e5e..ac1524793 100644
--- a/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 sys
-
-
-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 = [
+
@@ -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.
···
+install_requires.append(pywin32_req + " ; sys_platform == 'win32'")
dev_extras = [
-
'astroid==1.6.5',
+
'coverage',
--
2.24.1
+18 -18
pkgs/tools/admin/certbot/default.nix
···
-
{ 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
+
}:
-
python37Packages.buildPythonApplication rec {
+
buildPythonApplication rec {
pname = "certbot";
-
version = "1.0.0";
+
version = "1.3.0";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
-
sha256 = "180x7gcpfbrzw8k654s7b5nxdy2yg61lq513dykyn3wz4gssw465";
+
sha256 = "1nzp1l63f64qqp89y1vyd4lgfhykfp5dkr6iwfiyf273y7sjwpsa";
};
patches = [
./0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patch
];
-
propagatedBuildInputs = with python37Packages; [
+
propagatedBuildInputs = [
ConfigArgParse
acme
configobj
···
distro
josepy
parsedatetime
-
psutil
pyRFC3339
pyopenssl
pytz
+
requests
six
zope_component
zope_interface
];
-
buildInputs = [ dialog ] ++ (with python37Packages; [ mock gnureadline ]);
+
buildInputs = [ dialog mock gnureadline ];
-
checkInputs = with python37Packages; [
-
pytest_xdist
-
pytest
-
dateutil
-
];
+
checkInputs = [ pytest_xdist pytest dateutil ];
-
postPatch = ''
+
preBuild = ''
cd certbot
-
substituteInPlace certbot/_internal/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"
'';
postInstall = ''
···
doCheck = true;
-
meta = with stdenv.lib; {
+
meta = with lib; {
homepage = src.meta.homepage;
description = "ACME client that can obtain certs and extensibly update server configurations";
platforms = platforms.unix;
-
maintainers = [ maintainers.domenkozar ];
-
license = licenses.asl20;
+
maintainers = with maintainers; [ domenkozar ];
+
license = with licenses; [ asl20 ];
};
}
+1 -1
pkgs/top-level/all-packages.nix
···
ogre = ogre1_10;
-
certbot = callPackage ../tools/admin/certbot { };
+
certbot = python3Packages.callPackage ../tools/admin/certbot { };
caf = callPackage ../development/libraries/caf {};