git: 172c515a035a - main - security/py-libnacl: Convert to USE_PYTHON=unittest

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 03 Jun 2022 17:02:06 UTC
The branch main has been updated by sunpoet:

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

commit 172c515a035ada73b6e40f14ba6443ee3e378fc6
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-03 16:57:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-03 16:57:51 +0000

    security/py-libnacl: Convert to USE_PYTHON=unittest
---
 security/py-libnacl/Makefile | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/security/py-libnacl/Makefile b/security/py-libnacl/Makefile
index dd1b8aa44aec..b7bda16274a8 100644
--- a/security/py-libnacl/Makefile
+++ b/security/py-libnacl/Makefile
@@ -15,11 +15,9 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 LIB_DEPENDS=	libsodium.so:security/libsodium
 
 USES=		python:3.6+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent distutils unittest
 
 NO_ARCH=	yes
-
-do-test:
-	cd ${WRKSRC} && ${PYTHON_CMD} -m unittest discover -s tests -v
+TEST_ARGS=	discover -s tests
 
 .include <bsd.port.mk>