git: 8a49ab509474 - main - misc/py-langgraph-checkpoint-sqlite: New port: SQLite implementation of LangGraph checkpoint saver

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 07 Sep 2026 10:10:20 UTC
The branch main has been updated by yuri:

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

commit 8a49ab509474a9b13867959eb8650109d2f0bda6
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-09-07 06:59:03 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-09-07 10:09:53 +0000

    misc/py-langgraph-checkpoint-sqlite: New port: SQLite implementation of LangGraph checkpoint saver
    
    PR:             298259
    Approved by:    Baptiste Daroussin <bapt@FreeBSD.org> (on behalf of portmgr@)
---
 misc/Makefile                                 |  1 +
 misc/py-langgraph-checkpoint-sqlite/Makefile  | 39 +++++++++++++++++++++++++++
 misc/py-langgraph-checkpoint-sqlite/distinfo  |  3 +++
 misc/py-langgraph-checkpoint-sqlite/pkg-descr |  4 +++
 4 files changed, 47 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 51624dd375e1..bd9806619cdb 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -561,6 +561,7 @@
     SUBDIR += py-langchain-text-splitters
     SUBDIR += py-langgraph
     SUBDIR += py-langgraph-checkpoint
+    SUBDIR += py-langgraph-checkpoint-sqlite
     SUBDIR += py-langgraph-prebuilt
     SUBDIR += py-langgraph-sdk
     SUBDIR += py-langsmith
diff --git a/misc/py-langgraph-checkpoint-sqlite/Makefile b/misc/py-langgraph-checkpoint-sqlite/Makefile
new file mode 100644
index 000000000000..bd9f0b73e2fb
--- /dev/null
+++ b/misc/py-langgraph-checkpoint-sqlite/Makefile
@@ -0,0 +1,39 @@
+PORTNAME=	langgraph-checkpoint-sqlite
+DISTVERSION=	3.1.1
+CATEGORIES=	misc python # machine-learning
+MASTER_SITES=	PYPI
+MASTER_SITE_SUBDIR=	source/l/langgraph-checkpoint-sqlite
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/g}-${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	SQLite implementation of LangGraph checkpoint saver
+WWW=		https://github.com/langchain-ai/langgraph/tree/main/libs/checkpoint-sqlite
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aiosqlite>=0.20:databases/py-aiosqlite@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}langgraph-checkpoint>=4.1.0:misc/py-langgraph-checkpoint@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sqlite-vec>=0.1.6:databases/py-sqlite-vec@${PY_FLAVOR}
+TEST_DEPENDS=	${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-retry>=1.7.0:devel/py-pytest-retry@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-watcher>0:devel/py-pytest-watcher@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+NO_ARCH=	yes
+
+# FreeBSD's sqlite3 module is built without loadable extension support, so
+# vector-store tests that require sqlite-vec extensions cannot run.
+TEST_ARGS=	--ignore=${WRKSRC}/tests/test_async_store.py \
+		--ignore=${WRKSRC}/tests/test_store.py \
+		--ignore=${WRKSRC}/tests/test_ttl.py
+
+# tests as of 3.1.1: 27 passed, 1 skipped, 1 warning in 60.77s
+
+.include <bsd.port.mk>
diff --git a/misc/py-langgraph-checkpoint-sqlite/distinfo b/misc/py-langgraph-checkpoint-sqlite/distinfo
new file mode 100644
index 000000000000..960fefa4a84a
--- /dev/null
+++ b/misc/py-langgraph-checkpoint-sqlite/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1788737883
+SHA256 (langgraph_checkpoint_sqlite-3.1.1.tar.gz) = 6fcb20db4c37ef7aad52f29b539eb98c38e2dad6fab7c2446a2a9db24f37a70e
+SIZE (langgraph_checkpoint_sqlite-3.1.1.tar.gz) = 146805
diff --git a/misc/py-langgraph-checkpoint-sqlite/pkg-descr b/misc/py-langgraph-checkpoint-sqlite/pkg-descr
new file mode 100644
index 000000000000..6eda036c5897
--- /dev/null
+++ b/misc/py-langgraph-checkpoint-sqlite/pkg-descr
@@ -0,0 +1,4 @@
+Library with a SQLite implementation of LangGraph checkpoint saver.
+
+This package provides SQLite-backed checkpoint and storage implementations
+for LangGraph, including both synchronous and asynchronous APIs.