git: 4c0e37484994 - main - math/py-PyMetis: Update 2020.1 -> 2022.1

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 29 Jul 2022 08:08:57 UTC
The branch main has been updated by yuri:

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

commit 4c0e3748499427f748a2e67f3d972f82f7da5654
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-29 07:53:21 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-29 08:08:50 +0000

    math/py-PyMetis: Update 2020.1 -> 2022.1
    
    Also add test target.
---
 math/py-PyMetis/Makefile | 11 ++++++++++-
 math/py-PyMetis/distinfo |  6 +++---
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/math/py-PyMetis/Makefile b/math/py-PyMetis/Makefile
index 242b1a56f165..9f28e9b11a06 100644
--- a/math/py-PyMetis/Makefile
+++ b/math/py-PyMetis/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	PyMetis
-DISTVERSION=	2020.1
+DISTVERSION=	2022.1
 CATEGORIES=	math python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,8 +14,17 @@ BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pip>0:devel/py-pip@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pybind11>0:devel/py-pybind11@${PY_FLAVOR}
 LIB_DEPENDS=	libmetis.so:math/metis
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}
+TEST_DEPENDS=	pytest:devel/py-pytest@${PY_FLAVOR}
 
 USES=		compiler:c++14-lang localbase python:3.6+
 USE_PYTHON=	distutils autoplist
 
+TEST_ENV=	${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pymetis/_internal.cpython-39.so
+
+do-test:
+	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest
+
 .include <bsd.port.mk>
diff --git a/math/py-PyMetis/distinfo b/math/py-PyMetis/distinfo
index cd5bef4a7749..f20a1dceaa14 100644
--- a/math/py-PyMetis/distinfo
+++ b/math/py-PyMetis/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1605374680
-SHA256 (PyMetis-2020.1.tar.gz) = d13e262e8ee20963e898c2c473b69502661a8727904a49b33689fb4d42248555
-SIZE (PyMetis-2020.1.tar.gz) = 297926
+TIMESTAMP = 1659080909
+SHA256 (PyMetis-2022.1.tar.gz) = f849e2cb3e49da8e5c82a3e76830fe04175ba2d31bc436898f8dedfe9d6dde9b
+SIZE (PyMetis-2022.1.tar.gz) = 338485