From a20969101ddb151073ecdbb999799a634bac7502 Mon Sep 17 00:00:00 2001 From: Sarah Clark Date: Wed, 19 Nov 2025 11:53:13 -0800 Subject: [PATCH] python3Packages.langchain-community: 0.3.27 -> 0.4.1 --- .../langchain-community/default.nix | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/langchain-community/default.nix b/pkgs/development/python-modules/langchain-community/default.nix index fdc3b7b8bd3f..e3cbd8ec56a3 100644 --- a/pkgs/development/python-modules/langchain-community/default.nix +++ b/pkgs/development/python-modules/langchain-community/default.nix @@ -10,7 +10,7 @@ aiohttp, dataclasses-json, httpx-sse, - langchain, + langchain-classic, langchain-core, langsmith, numpy, @@ -42,39 +42,30 @@ buildPythonPackage rec { pname = "langchain-community"; - version = "0.3.27"; + version = "0.4.1"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain-community"; tag = "libs/community/v${version}"; - hash = "sha256-rGU8AYe7993+zMAtHLkNiK+wA+UtZnGkUQsOPMtUQ8w="; + hash = "sha256-N92YDmej2shQQlktr0veFOKyGFWemFj0hdJIYu1rYSc="; }; sourceRoot = "${src.name}/libs/community"; build-system = [ pdm-backend ]; + # Only needed for mixed python 3.12/3.13 builds pythonRelaxDeps = [ - # Each component release requests the exact latest langchain and -core. - # That prevents us from updating individual components. - "langchain" - "langchain-core" "numpy" - "pydantic-settings" - "tenacity" - ]; - - pythonRemoveDeps = [ - "bs4" ]; dependencies = [ aiohttp dataclasses-json httpx-sse - langchain + langchain-classic langchain-core langsmith numpy