git: 154cb2fbc539 - main - misc/py-langchain-text-splitters: New port: LangChain: Text splitting utilities

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 18 Jul 2025 20:53:03 UTC
The branch main has been updated by yuri:

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

commit 154cb2fbc5391c78a024ec276e2c618ea16b9581
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-07-18 20:50:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-07-18 20:52:56 +0000

    misc/py-langchain-text-splitters: New port: LangChain: Text splitting utilities
---
 misc/Makefile                              |  1 +
 misc/py-langchain-text-splitters/Makefile  | 33 ++++++++++++++++++++++++++++++
 misc/py-langchain-text-splitters/distinfo  |  3 +++
 misc/py-langchain-text-splitters/pkg-descr |  2 ++
 4 files changed, 39 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 21e56416018c..514100501e98 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -458,6 +458,7 @@
     SUBDIR += py-kartograph
     SUBDIR += py-langchain-core
     SUBDIR += py-langchain-tests
+    SUBDIR += py-langchain-text-splitters
     SUBDIR += py-langsmith
     SUBDIR += py-laspy
     SUBDIR += py-lazrs
diff --git a/misc/py-langchain-text-splitters/Makefile b/misc/py-langchain-text-splitters/Makefile
new file mode 100644
index 000000000000..d9466b0060bc
--- /dev/null
+++ b/misc/py-langchain-text-splitters/Makefile
@@ -0,0 +1,33 @@
+PORTNAME=	langchain-text-splitters
+DISTVERSION=	0.3.8
+CATEGORIES=	misc python # machine-learning
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/g}-${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	LangChain: Text splitting utilities
+WWW=		https://github.com/langchain-ai/langchain/tree/master/libs/text-splitter \
+		https://github.com/langchain-ai/langchain
+
+LICENSE=	MIT
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pdm-backend>0:devel/py-pdm-backend@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}langchain-core>=0.3.51:misc/py-langchain-core@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}freezegun>0:devel/py-freezegun@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}langchain-core>0:misc/py-langchain-core@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0.21.1:devel/py-pytest-asyncio@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-mock>=3.10.0:devel/py-pytest-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-socket>=0.7.0:devel/py-pytest-socket@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-watcher>0:devel/py-pytest-watcher@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-xdist>=3.6.1:devel/py-pytest-xdist@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist pytest
+
+NO_ARCH=	yes
+
+# tests fail: INTERNALERROR> ValueError: no option named 'only_extended'
+
+.include <bsd.port.mk>
diff --git a/misc/py-langchain-text-splitters/distinfo b/misc/py-langchain-text-splitters/distinfo
new file mode 100644
index 000000000000..fc86fa0d063d
--- /dev/null
+++ b/misc/py-langchain-text-splitters/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1752863677
+SHA256 (langchain_text_splitters-0.3.8.tar.gz) = 116d4b9f2a22dda357d0b79e30acf005c5518177971c66a9f1ab0edfdb0f912e
+SIZE (langchain_text_splitters-0.3.8.tar.gz) = 42128
diff --git a/misc/py-langchain-text-splitters/pkg-descr b/misc/py-langchain-text-splitters/pkg-descr
new file mode 100644
index 000000000000..19a318f629d2
--- /dev/null
+++ b/misc/py-langchain-text-splitters/pkg-descr
@@ -0,0 +1,2 @@
+LangChain Text Splitters contains utilities for splitting into chunks a wide
+variety of text documents.