git: eb10ae12252c - main - devel/py-clikit: Allow build with py-crashtest 0.4.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 10:31:52 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eb10ae12252c9ad2c1c2631922dfdc933a654ffc

commit eb10ae12252c9ad2c1c2631922dfdc933a654ffc
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:24:17 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:24:17 +0000

    devel/py-clikit: Allow build with py-crashtest 0.4.0
    
    - Bump PORTREVISION for package change
---
 devel/py-clikit/Makefile             |  3 ++-
 devel/py-clikit/files/patch-setup.py | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/devel/py-clikit/Makefile b/devel/py-clikit/Makefile
index efb46888c1eb..11b5d923c858 100644
--- a/devel/py-clikit/Makefile
+++ b/devel/py-clikit/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	clikit
 PORTVERSION=	0.6.2
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -10,7 +11,7 @@ COMMENT=	Utilities to build beautiful and testable command line interfaces
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}crashtest>=0.3.0<0.4.0:devel/py-crashtest@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}crashtest>=0.3.0:devel/py-crashtest@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pastel>=0.2.0:devel/py-pastel@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pylev>=1.3<2.0:devel/py-pylev@${PY_FLAVOR}
 
diff --git a/devel/py-clikit/files/patch-setup.py b/devel/py-clikit/files/patch-setup.py
new file mode 100644
index 000000000000..aa749abb2df8
--- /dev/null
+++ b/devel/py-clikit/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2020-06-09 20:17:11 UTC
++++ setup.py
+@@ -45,7 +45,7 @@ extras_require = \
+ {':python_version >= "2.7" and python_version < "2.8"': ['enum34>=1.1,<2.0'],
+  ':python_version >= "2.7" and python_version < "2.8" or python_version >= "3.4" and python_version < "3.5"': ['typing>=3.6,<4.0'],
+  ':python_version >= "3.5" and python_full_version < "3.5.4"': ['typing-extensions>=3.6,<4.0'],
+- ':python_version >= "3.6" and python_version < "4.0"': ['crashtest>=0.3.0,<0.4.0']}
++ ':python_version >= "3.6" and python_version < "4.0"': ['crashtest>=0.3.0']}
+ 
+ setup_kwargs = {
+     'name': 'clikit',