git: ad76e62d0d65 - main - security/py-pysaml2: Update to 7.1.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 21 Nov 2021 21:19:20 UTC
The branch main has been updated by sunpoet:

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

commit ad76e62d0d65a45e20720a5799dbf3f8c4295731
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-11-21 21:16:00 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-11-21 21:16:00 +0000

    security/py-pysaml2: Update to 7.1.0
    
    Changes:        https://github.com/IdentityPython/pysaml2/releases
---
 security/py-pysaml2/Makefile | 12 +++++++++---
 security/py-pysaml2/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/security/py-pysaml2/Makefile b/security/py-pysaml2/Makefile
index 35bbe216c7ed..ea83eb7bd7d0 100644
--- a/security/py-pysaml2/Makefile
+++ b/security/py-pysaml2/Makefile
@@ -1,7 +1,7 @@
 # Created by: Brendan Molloy <brendan+freebsd@bbqsrc.net>
 
 PORTNAME=	pysaml2
-PORTVERSION=	7.0.1
+PORTVERSION=	7.1.0
 CATEGORIES=	security devel python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,7 +14,6 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cryptography>=1.4:security/py-cryptography@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}defusedxml>=0:devel/py-defusedxml@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}openssl>=0:security/py-openssl@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}Paste>=0:www/py-paste@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}dateutil>=0:devel/py-dateutil@${PY_FLAVOR} \
@@ -36,7 +35,14 @@ NO_ARCH=	yes
 
 CPE_VENDOR=	pysaml2_project
 
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30900
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}importlib-resources>=0:devel/py-importlib-resources@${PY_FLAVOR}
+.endif
+
 do-test:
 	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
 
-.include <bsd.port.mk>
+
+.include <bsd.port.post.mk>
diff --git a/security/py-pysaml2/distinfo b/security/py-pysaml2/distinfo
index 2b4cfc3073b7..ec8128748645 100644
--- a/security/py-pysaml2/distinfo
+++ b/security/py-pysaml2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1622037992
-SHA256 (pysaml2-7.0.1.tar.gz) = d81b822286f1e73ae420b53fe18b737b0abb0c17c0cf78e360dd37bcd9dc98b4
-SIZE (pysaml2-7.0.1.tar.gz) = 359067
+TIMESTAMP = 1637519902
+SHA256 (pysaml2-7.1.0.tar.gz) = 6d446de515dcb3a88ac52f2679cc7c6c46362239dbec94996d78168ac30ee3d4
+SIZE (pysaml2-7.1.0.tar.gz) = 364879