git: a9e8aaa0d89b - main - misc/py-langgraph-prebuilt: Add tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 30 Jun 2026 07:12:38 UTC
The branch main has been updated by yuri:

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

commit a9e8aaa0d89b02535b8352c706898d3705fafad6
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-30 06:54:28 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-30 07:12:15 +0000

    misc/py-langgraph-prebuilt: Add tests
---
 misc/py-langgraph-prebuilt/Makefile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/misc/py-langgraph-prebuilt/Makefile b/misc/py-langgraph-prebuilt/Makefile
index 8aa837476141..53248bc228d3 100644
--- a/misc/py-langgraph-prebuilt/Makefile
+++ b/misc/py-langgraph-prebuilt/Makefile
@@ -16,10 +16,20 @@ BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR
 		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}langchain-core>=1.3.1:misc/py-langchain-core@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}langgraph-checkpoint>=2.1.0:misc/py-langgraph-checkpoint@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}langchain-core>=0:misc/py-langchain-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}langgraph-checkpoint>=0:misc/py-langgraph-checkpoint@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}langgraph>=0:misc/py-langgraph@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-watcher>=0:devel/py-pytest-watcher@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}syrupy>=0:devel/py-syrupy@${PY_FLAVOR}
 
 USES=		python
-USE_PYTHON=	pep517 autoplist
+USE_PYTHON=	pep517 autoplist pytest
 
 NO_ARCH=	yes
 
+# tests as of 1.1.0: not run - fails with ModuleNotFoundError: langgraph.checkpoint.postgres
+# (langgraph-checkpoint-sqlite, langgraph-checkpoint-postgres and psycopg-binary are not ported)
+
 .include <bsd.port.mk>