git: b2b40635293d - main - misc/py-langchain-core: update 1.6.9 → 1.7.6
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 07 Nov 2026 08:20:55 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b2b40635293df3f7bcfe47653672451bc32f2d81
commit b2b40635293df3f7bcfe47653672451bc32f2d81
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-11-07 07:07:01 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-11-07 08:20:31 +0000
misc/py-langchain-core: update 1.6.9 → 1.7.6
---
misc/py-langchain-core/Makefile | 13 ++++++++-----
misc/py-langchain-core/distinfo | 6 +++---
.../files/patch-langchain__core_utils_uuid.py | 16 ++++++++++++++++
3 files changed, 27 insertions(+), 8 deletions(-)
diff --git a/misc/py-langchain-core/Makefile b/misc/py-langchain-core/Makefile
index b667f153c3e9..527cb1855f57 100644
--- a/misc/py-langchain-core/Makefile
+++ b/misc/py-langchain-core/Makefile
@@ -1,5 +1,5 @@
PORTNAME= langchain-core
-DISTVERSION= 1.6.9
+DISTVERSION= 1.7.6
CATEGORIES= misc python # machine-learning
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -13,10 +13,11 @@ WWW= https://python.langchain.com/docs/introduction/ \
LICENSE= MIT
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0.23.0:www/py-httpx@${PY_FLAVOR} \
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>=2026.7.22:security/py-certifi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}httpx>=0.23.0:www/py-httpx@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}jsonpatch>=1.33.0:devel/py-jsonpatch@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}langchain-protocol>=0.0.19:misc/py-langchain-protocol@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}langsmith>=0.3.45:misc/py-langsmith@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}langchain-protocol>=0.0.20:misc/py-langchain-protocol@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}langsmith>=0.14.9:misc/py-langsmith@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}packaging>=23.2.0:devel/py-packaging@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pydantic2>=2.7.4:devel/py-pydantic2@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pyyaml>=5.3.0:devel/py-pyyaml@${PY_FLAVOR} \
@@ -44,6 +45,8 @@ USE_PYTHON= pep517 autoplist pytest
NO_ARCH= yes
+# upstream requires certifi>=2026.10.19, but security/py-certifi is at 2026.7.22
+
# tests fail with: INTERNALERROR> ValueError: no option named 'only_extended'
# Deselect tests that require network access, DNS resolution, blocking calls,
# or specific upstream dependencies not available in the FreeBSD test environment.
@@ -105,6 +108,6 @@ TEST_ARGS= --ignore=${WRKSRC}/tests/unit_tests/test_ssrf_policy_transport.py \
--snapshot-warn-unused
# failures in deselected tets reported upstream: https://github.com/langchain-ai/langchain/issues/40852
-# tests as of 1.6.9: 2257 passed, 12 skipped, 36 deselected, 9 xfailed, 5 warnings
+# tests as of 1.7.6: 2450 passed, 12 skipped, 36 deselected, 9 xfailed, 5 warnings
.include <bsd.port.mk>
diff --git a/misc/py-langchain-core/distinfo b/misc/py-langchain-core/distinfo
index 2be461f3b7ca..dcfc07865df8 100644
--- a/misc/py-langchain-core/distinfo
+++ b/misc/py-langchain-core/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1791664191
-SHA256 (langchain_core-1.6.9.tar.gz) = 34394228603e6f0bd24ce4e773b58b7d160e1b8cf489ecb350cf41f5366f5e92
-SIZE (langchain_core-1.6.9.tar.gz) = 1010051
+TIMESTAMP = 1793997199
+SHA256 (langchain_core-1.7.6.tar.gz) = 0833781e3a8e6fe83073c8412c21180a0545d5ccdf3437889951caf9589ece6c
+SIZE (langchain_core-1.7.6.tar.gz) = 1037637
diff --git a/misc/py-langchain-core/files/patch-langchain__core_utils_uuid.py b/misc/py-langchain-core/files/patch-langchain__core_utils_uuid.py
new file mode 100644
index 000000000000..75bd38d5722d
--- /dev/null
+++ b/misc/py-langchain-core/files/patch-langchain__core_utils_uuid.py
@@ -0,0 +1,16 @@
+-- Use the nanoseconds= argument of uuid_utils.compat.uuid7().
+-- uuid-utils 1.x removed the timestamp=/nanos= arguments; upstream caps uuid-utils<1.0
+-- but the port ignores upper bounds and ships uuid-utils 1.x.
+
+--- langchain_core/utils/uuid.py.orig 2026-11-07 00:00:45 UTC
++++ langchain_core/utils/uuid.py
+@@ -50,8 +50,7 @@ def uuid7(nanoseconds: int | None = None) -> UUID:
+ # For now, just delegate to the uuid_utils implementation
+ if nanoseconds is None:
+ return _uuid_utils_uuid7()
+- seconds, nanos = _to_timestamp_and_nanos(nanoseconds)
+- return _uuid_utils_uuid7(timestamp=seconds, nanos=nanos)
++ return _uuid_utils_uuid7(nanoseconds=nanoseconds)
+
+
+ __all__ = ["uuid7"]