Merge pull request #75663 from flokli/certbot-1.0.1
certbot: 0.39.0 -> 1.0.0
This commit is contained in:
commit
7ef8a85540
5 changed files with 24 additions and 52 deletions
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildPythonPackage, fetchFromGitHub, acme, aiohttp, snitun, attrs, pytest-aiohttp, warrant, pytest }:
|
||||
{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, acme, aiohttp, snitun, attrs, pytest-aiohttp, warrant, pytest }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hass-nabucasa";
|
||||
|
@ -11,6 +11,12 @@ buildPythonPackage rec {
|
|||
sha256 = "182nh5i3hlj0kqkbynk69md0ddq83w02l8lz4m03d8xbjixzi1k1";
|
||||
};
|
||||
|
||||
# upstreamed in https://github.com/NabuCasa/hass-nabucasa/pull/119
|
||||
postPatch = ''
|
||||
sed -i 's/"acme.*/"acme>=0.40.0,<2.0"/' setup.py
|
||||
cat setup.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ acme aiohttp snitun attrs warrant ];
|
||||
|
||||
checkInputs = [ pytest pytest-aiohttp ];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
From 411b8a413baf39e9b967949b17a992e81a11abfe Mon Sep 17 00:00:00 2001
|
||||
From 0de195de31dc311976af52a7c2b547bc23af2691 Mon Sep 17 00:00:00 2001
|
||||
From: Frederik Rietdijk <fridh@fridh.nl>
|
||||
Date: Tue, 29 Oct 2019 14:08:07 +0100
|
||||
Date: Sat, 14 Dec 2019 19:27:14 +0100
|
||||
Subject: [PATCH] Don't use distutils.StrictVersion that cannot handle certain
|
||||
versions
|
||||
|
||||
|
@ -18,13 +18,13 @@ line 137, in parse
|
|||
ValueError: invalid version number '41.4.0.post20191022'
|
||||
```
|
||||
---
|
||||
setup.py | 15 +--------------
|
||||
certbot/setup.py | 15 +--------------
|
||||
1 file changed, 1 insertion(+), 14 deletions(-)
|
||||
|
||||
diff --git a/setup.py b/setup.py
|
||||
index 1f4838c90..831528d77 100644
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
diff --git a/certbot/setup.py b/certbot/setup.py
|
||||
index c1bf914..7456bf2 100644
|
||||
--- a/certbot/setup.py
|
||||
+++ b/certbot/setup.py
|
||||
@@ -3,7 +3,6 @@ import os
|
||||
import re
|
||||
import sys
|
||||
|
@ -40,7 +40,7 @@ index 1f4838c90..831528d77 100644
|
|||
-# 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>=224'
|
||||
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:]:
|
||||
|
@ -56,5 +56,5 @@ index 1f4838c90..831528d77 100644
|
|||
dev_extras = [
|
||||
'astroid==1.6.5',
|
||||
--
|
||||
2.23.0
|
||||
2.24.1
|
||||
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
From 8ddf2697508eca514a0dde4646ad14ac3ba34b2a Mon Sep 17 00:00:00 2001
|
||||
From: Florian Klink <flokli@flokli.de>
|
||||
Date: Fri, 18 Oct 2019 16:06:50 +0200
|
||||
Subject: [PATCH] pebble_artifacts: hardcode pebble location
|
||||
|
||||
---
|
||||
certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py b/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py
|
||||
index 2b1557928..d2603c51a 100644
|
||||
--- a/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py
|
||||
+++ b/certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py
|
||||
@@ -22,6 +22,7 @@ def fetch(workspace):
|
||||
|
||||
|
||||
def _fetch_asset(asset, suffix):
|
||||
+ return "@pebble@"
|
||||
asset_path = os.path.join(ASSETS_PATH, '{0}_{1}_{2}'.format(asset, PEBBLE_VERSION, suffix))
|
||||
if not os.path.exists(asset_path):
|
||||
asset_url = ('https://github.com/letsencrypt/pebble/releases/download/{0}/{1}_{2}'
|
||||
--
|
||||
2.23.0
|
||||
|
|
@ -1,19 +1,18 @@
|
|||
{ stdenv, python37Packages, fetchFromGitHub, fetchurl, dialog, autoPatchelfHook, nginx, pebble }:
|
||||
{ stdenv, python37Packages, fetchFromGitHub, fetchurl, dialog, autoPatchelfHook }:
|
||||
|
||||
|
||||
python37Packages.buildPythonApplication rec {
|
||||
pname = "certbot";
|
||||
version = "0.39.0";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "1s32xg2ljz7ci78wc8rqkjvgrz7vprb7fkznrlf9a4blm55pp54c";
|
||||
sha256 = "180x7gcpfbrzw8k654s7b5nxdy2yg61lq513dykyn3wz4gssw465";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./0001-pebble_artifacts-hardcode-pebble-location.patch
|
||||
./0001-Don-t-use-distutils.StrictVersion-that-cannot-handle.patch
|
||||
];
|
||||
|
||||
|
@ -43,9 +42,8 @@ python37Packages.buildPythonApplication rec {
|
|||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"
|
||||
substituteInPlace certbot/util.py --replace "sw_vers" "/usr/bin/sw_vers"
|
||||
substituteInPlace certbot-ci/certbot_integration_tests/utils/pebble_artifacts.py --replace "@pebble@" "${pebble}/bin/pebble"
|
||||
cd certbot
|
||||
substituteInPlace certbot/_internal/notify.py --replace "/usr/sbin/sendmail" "/run/wrappers/bin/sendmail"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
@ -55,15 +53,7 @@ python37Packages.buildPythonApplication rec {
|
|||
done
|
||||
'';
|
||||
|
||||
# tests currently time out, because they're trying to do network access
|
||||
# Upstream issue: https://github.com/certbot/certbot/issues/7450
|
||||
doCheck = false;
|
||||
|
||||
checkPhase = ''
|
||||
PATH="$out/bin:${nginx}/bin:$PATH" pytest certbot-ci/certbot_integration_tests
|
||||
'';
|
||||
|
||||
dontUseSetuptoolsCheck = true;
|
||||
doCheck = true;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = src.meta.homepage;
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "simp_le-client";
|
||||
version = "0.16.0";
|
||||
version = "0.17.0";
|
||||
|
||||
src = python3Packages.fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "17azqlb1xsnh9p0m75apb19j7pramgj00cf5k6fwzz2zqz0x0hpp";
|
||||
sha256 = "0m1jynar4calaffp2zdxr5yy9vnhw2qf2hsfxwzfwf8fqb5h7bjb";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
|
Loading…
Reference in a new issue