git: 589753711cfe - main - devel/py-pre-commit-hooks: Update to 4.3.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Thu, 09 Jun 2022 11:03:55 UTC
The branch main has been updated by sunpoet:

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

commit 589753711cfe0bec4a7568778c228003ec4046cf
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-09 10:58:24 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-09 10:58:24 +0000

    devel/py-pre-commit-hooks: Update to 4.3.0
    
    Changes:        https://github.com/pre-commit/pre-commit-hooks/releases
---
 devel/py-pre-commit-hooks/Makefile | 13 +++++++++----
 devel/py-pre-commit-hooks/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/devel/py-pre-commit-hooks/Makefile b/devel/py-pre-commit-hooks/Makefile
index 7126ec654062..16c42142f628 100644
--- a/devel/py-pre-commit-hooks/Makefile
+++ b/devel/py-pre-commit-hooks/Makefile
@@ -1,7 +1,7 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	pre-commit-hooks
-PORTVERSION=	4.2.0
+PORTVERSION=	4.3.0
 CATEGORIES=	devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -13,12 +13,17 @@ COMMENT=	Some out-of-the-box hooks for pre-commit
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.15:devel/py-ruamel.yaml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}toml>=0:textproc/py-toml@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ruamel.yaml>=0.15:devel/py-ruamel.yaml@${PY_FLAVOR}
 
 USES=		python:3.7+
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 31100
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}tomli>=1.1.0:textproc/py-tomli@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/devel/py-pre-commit-hooks/distinfo b/devel/py-pre-commit-hooks/distinfo
index 33d1f38c1cea..b96e6fc39f44 100644
--- a/devel/py-pre-commit-hooks/distinfo
+++ b/devel/py-pre-commit-hooks/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1650228778
-SHA256 (pre_commit_hooks-4.2.0.tar.gz) = 9726420c7a071e8cb233a066d36bc074b593a40f0b1b491d1b75aafa55390703
-SIZE (pre_commit_hooks-4.2.0.tar.gz) = 28563
+TIMESTAMP = 1654708354
+SHA256 (pre_commit_hooks-4.3.0.tar.gz) = fda598a4c834d030727e6a615722718b47510f4bed72df4c949f95ba9f5aaf88
+SIZE (pre_commit_hooks-4.3.0.tar.gz) = 28942