git: fb265a6856dd - main - science/py-scikit-learn: Add pytest test dependency

From: Michael Osipov <michaelo_at_FreeBSD.org>
Date: Sun, 02 Nov 2025 21:45:18 UTC
The branch main has been updated by michaelo:

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

commit fb265a6856ddf4e185721ba2070d4fc8c7e1252d
Author:     John Hein <jcfyecrayz@liamekaens.com>
AuthorDate: 2025-11-02 14:00:00 +0000
Commit:     Michael Osipov <michaelo@FreeBSD.org>
CommitDate: 2025-11-02 21:44:56 +0000

    science/py-scikit-learn: Add pytest test dependency
    
    PR:             290745
    Tested by:      michaelo
---
 science/py-scikit-learn/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/science/py-scikit-learn/Makefile b/science/py-scikit-learn/Makefile
index 1e77e50ed73c..3fb44ba9428f 100644
--- a/science/py-scikit-learn/Makefile
+++ b/science/py-scikit-learn/Makefile
@@ -20,7 +20,10 @@ RUN_DEPENDS:=	${BUILD_DEPENDS}
 BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}meson-python>=0.17.1:devel/meson-python@${PY_FLAVOR}
 
 USES=		fortran python localbase shebangfix
-USE_PYTHON=	autoplist cython3 pep517
+USE_PYTHON=	autoplist cython3 pep517 pytest
+
+TEST_ARGS=	sklearn
+TEST_WRKSRC=	${STAGEDIR}${PYTHON_SITELIBDIR}
 
 SHEBANG_FILES=	sklearn/_build_utils/version.py