git: 0bde1d95eb12 - main - databases/py-mycli: Update to 1.24.3

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 28 Jan 2022 23:28:20 UTC
The branch main has been updated by sunpoet:

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

commit 0bde1d95eb122f805516baa6911058b7b48fad9d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-28 23:19:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-28 23:26:43 +0000

    databases/py-mycli: Update to 1.24.3
    
    Changes:        https://github.com/dbcli/mycli/blob/master/changelog.md
---
 databases/py-mycli/Makefile             | 15 +++++++++++----
 databases/py-mycli/distinfo             |  6 +++---
 databases/py-mycli/files/patch-setup.py | 19 +++++++------------
 3 files changed, 21 insertions(+), 19 deletions(-)

diff --git a/databases/py-mycli/Makefile b/databases/py-mycli/Makefile
index 305456c296de..c101a27dc1e6 100644
--- a/databases/py-mycli/Makefile
+++ b/databases/py-mycli/Makefile
@@ -1,7 +1,7 @@
 # Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	mycli
-PORTVERSION=	1.23.2
+PORTVERSION=	1.24.3
 CATEGORIES=	databases python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -12,19 +12,26 @@ COMMENT=	CLI for MySQL Database with auto-completion and syntax highlighting
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cli-helpers>=2.0.1:devel/py-cli-helpers@${PY_FLAVOR} \
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cli-helpers>=2.2.1:devel/py-cli-helpers@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}click>=7.0:devel/py-click@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}configobj>=5.0.5:devel/py-configobj@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}cryptography>=1.0.0:security/py-cryptography@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}prompt-toolkit>=3.0.6<4.0.0:devel/py-prompt-toolkit@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyaes>=1.6.1:security/py-pyaes@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pygments>=1.6:textproc/py-pygments@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pymysql>=0.9.2:databases/py-pymysql@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pyperclip>=1.7.0:devel/py-pyperclip@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}sqlparse>=0.3.0:databases/py-sqlparse@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}sqlparse>=0.3.0<0.5.0:databases/py-sqlparse@${PY_FLAVOR}
 
 USES=		mysql python:3.6+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30900
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=5.0.0:devel/py-importlib-resources@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/databases/py-mycli/distinfo b/databases/py-mycli/distinfo
index 11c036c75acd..73f94aa2f4a1 100644
--- a/databases/py-mycli/distinfo
+++ b/databases/py-mycli/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1612519123
-SHA256 (mycli-1.23.2.tar.gz) = 6ae19b140bf02d1eda0c286181e3593d93cd189a3e6fd4384c50da3ab994db32
-SIZE (mycli-1.23.2.tar.gz) = 274481
+TIMESTAMP = 1643382530
+SHA256 (mycli-1.24.3.tar.gz) = 424daa3977c033bc49bf57c3b7f9a76f635915fe52fc4c689d0b4b1389b6d9ae
+SIZE (mycli-1.24.3.tar.gz) = 278128
diff --git a/databases/py-mycli/files/patch-setup.py b/databases/py-mycli/files/patch-setup.py
index f5355401ddb9..69cbfbde055b 100644
--- a/databases/py-mycli/files/patch-setup.py
+++ b/databases/py-mycli/files/patch-setup.py
@@ -1,16 +1,11 @@
---- setup.py.orig	2021-01-07 01:54:09 UTC
+--- setup.py.orig	2022-01-21 01:27:26 UTC
 +++ setup.py
-@@ -21,11 +21,11 @@ install_requirements = [
-     'Pygments >= 1.6',
-     'prompt_toolkit>=3.0.6,<4.0.0',
-     'PyMySQL >= 0.9.2',
--    'sqlparse>=0.3.0,<0.4.0',
-+    'sqlparse>=0.3.0',
+@@ -26,7 +26,7 @@ install_requirements = [
+     'sqlparse>=0.3.0,<0.5.0',
      'configobj >= 5.0.5',
-     'cryptography >= 1.0.0',
-     'cli_helpers[styles] >= 2.0.1',
--    'pyperclip >= 1.8.1'
-+    'pyperclip >= 1.7.0'
+     'cli_helpers[styles] >= 2.2.1',
+-    'pyperclip >= 1.8.1',
++    'pyperclip >= 1.7.0',
+     'pyaes >= 1.6.1'
  ]
  
-