Loading pkgs/development/python-modules/langchain-classic/default.nix 0 → 100644 +114 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, # build-system hatchling, # dependencies langchain-core, langchain-text-splitters, langsmith, pydantic, pyyaml, requests, sqlalchemy, # tests blockbuster, cffi, freezegun, langchain-openai, langchain-tests, lark, numpy, packaging, pandas, pytest-asyncio, pytest-dotenv, pytest-mock, pytest-socket, pytest-xdist, pytestCheckHook, requests-mock, responses, syrupy, toml, }: buildPythonPackage rec { pname = "langchain-classic"; version = "1.0.0-unstable-2025-11-11"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; # no tagged releases avaialble rev = "3dfea96ec1d2dac4e506d287860ee943c183c9f1"; hash = "sha256-U3UllSSa4tFz+nXAP6aNoYceU/xCPbwKSP2F2et+qgQ="; }; sourceRoot = "${src.name}/libs/langchain"; build-system = [ hatchling ]; pythonRelaxDeps = [ # Each component release requests the exact latest core. "langchain-core" ]; dependencies = [ langchain-core langchain-text-splitters langsmith pydantic pyyaml requests sqlalchemy ]; nativeCheckInputs = [ blockbuster cffi freezegun langchain-core langchain-openai langchain-tests langchain-text-splitters lark numpy packaging pandas pytest-asyncio pytest-dotenv pytest-mock pytest-socket pytest-xdist pytestCheckHook requests-mock responses syrupy toml ]; enabledTestPaths = [ # integration_tests require network access, database access and require `OPENAI_API_KEY`, etc. "tests/unit_tests" ]; disabledTests = [ # Network access (web.example.com) "test_socket_disabled" ]; pythonImportsCheck = [ "langchain_classic" ]; meta = { description = "Classic (0.x) compatibility layer for LangChain"; homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/langchain"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sarahec ]; }; } pkgs/development/python-modules/langchain-community/default.nix +5 −14 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ aiohttp, dataclasses-json, httpx-sse, langchain, langchain-classic, langchain-core, langsmith, numpy, Loading Loading @@ -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 Loading pkgs/development/python-modules/langchain-core/default.nix +2 −8 Original line number Diff line number Diff line Loading @@ -36,25 +36,20 @@ buildPythonPackage rec { pname = "langchain-core"; version = "1.0.0"; version = "1.0.7"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-core==${version}"; hash = "sha256-/V2xwpVIR7AWkN85D51LYokMrTrnJlIkGr0q1ztVh8A="; hash = "sha256-esMMA9z8z9Q909buPGZP1jujEWzdXT+Mxlwvjz0XqKk="; }; sourceRoot = "${src.name}/libs/core"; build-system = [ hatchling ]; pythonRelaxDeps = [ "packaging" "tenacity" ]; dependencies = [ jsonpatch langsmith Loading @@ -74,7 +69,6 @@ buildPythonPackage rec { blockbuster freezegun grandalf httpx langchain-tests numpy pytest-asyncio Loading pkgs/development/python-modules/langchain-experimental/default.nix +9 −6 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ fetchFromGitHub, # build-system poetry-core, pdm-backend, # dependencies langchain-core, Loading @@ -20,14 +20,14 @@ buildPythonPackage rec { pname = "langchain-experimental"; version = "0.3.4"; version = "0.4.0"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain-experimental"; tag = "libs/experimental/v${version}"; hash = "sha256-KgGfJfxHOfpwVVo/OcbOjiO5pbxoDE1MiyKqUwsqfIg="; hash = "sha256-A5qCTOCmKt/a1DTKVOC/WwuLCqOYI5pGhAGo/Y4C/FY="; }; sourceRoot = "${src.name}/libs/experimental"; Loading @@ -38,7 +38,7 @@ buildPythonPackage rec { ]; build-system = [ poetry-core pdm-backend ]; pythonRelaxDeps = [ Loading Loading @@ -68,9 +68,12 @@ buildPythonPackage rec { meta = { changelog = "https://github.com/langchain-ai/langchain-experimental/releases/tag/${src.tag}"; description = "Package add experimental features on LangChain"; description = "Experimental features for LangChain"; homepage = "https://github.com/langchain-ai/langchain-experimental/tree/main/libs/experimental"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mrdev023 ]; maintainers = with lib.maintainers; [ mrdev023 sarahec ]; }; } pkgs/development/python-modules/langchain-groq/default.nix +2 −2 Original line number Diff line number Diff line Loading @@ -20,14 +20,14 @@ buildPythonPackage rec { pname = "langchain-groq"; version = "1.0.0"; version = "1.0.1"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-groq==${version}"; hash = "sha256-OuZEdpPp0mKSejd43RW3bXzCzp3E4Pce7flsSr5JleY="; hash = "sha256-08dEZI+sI33i4FGSAVvE3i5KIRccdslw0PXqXlMLldE="; }; sourceRoot = "${src.name}/libs/partners/groq"; Loading Loading
pkgs/development/python-modules/langchain-classic/default.nix 0 → 100644 +114 −0 Original line number Diff line number Diff line { lib, buildPythonPackage, fetchFromGitHub, # build-system hatchling, # dependencies langchain-core, langchain-text-splitters, langsmith, pydantic, pyyaml, requests, sqlalchemy, # tests blockbuster, cffi, freezegun, langchain-openai, langchain-tests, lark, numpy, packaging, pandas, pytest-asyncio, pytest-dotenv, pytest-mock, pytest-socket, pytest-xdist, pytestCheckHook, requests-mock, responses, syrupy, toml, }: buildPythonPackage rec { pname = "langchain-classic"; version = "1.0.0-unstable-2025-11-11"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; # no tagged releases avaialble rev = "3dfea96ec1d2dac4e506d287860ee943c183c9f1"; hash = "sha256-U3UllSSa4tFz+nXAP6aNoYceU/xCPbwKSP2F2et+qgQ="; }; sourceRoot = "${src.name}/libs/langchain"; build-system = [ hatchling ]; pythonRelaxDeps = [ # Each component release requests the exact latest core. "langchain-core" ]; dependencies = [ langchain-core langchain-text-splitters langsmith pydantic pyyaml requests sqlalchemy ]; nativeCheckInputs = [ blockbuster cffi freezegun langchain-core langchain-openai langchain-tests langchain-text-splitters lark numpy packaging pandas pytest-asyncio pytest-dotenv pytest-mock pytest-socket pytest-xdist pytestCheckHook requests-mock responses syrupy toml ]; enabledTestPaths = [ # integration_tests require network access, database access and require `OPENAI_API_KEY`, etc. "tests/unit_tests" ]; disabledTests = [ # Network access (web.example.com) "test_socket_disabled" ]; pythonImportsCheck = [ "langchain_classic" ]; meta = { description = "Classic (0.x) compatibility layer for LangChain"; homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/langchain"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sarahec ]; }; }
pkgs/development/python-modules/langchain-community/default.nix +5 −14 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ aiohttp, dataclasses-json, httpx-sse, langchain, langchain-classic, langchain-core, langsmith, numpy, Loading Loading @@ -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 Loading
pkgs/development/python-modules/langchain-core/default.nix +2 −8 Original line number Diff line number Diff line Loading @@ -36,25 +36,20 @@ buildPythonPackage rec { pname = "langchain-core"; version = "1.0.0"; version = "1.0.7"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-core==${version}"; hash = "sha256-/V2xwpVIR7AWkN85D51LYokMrTrnJlIkGr0q1ztVh8A="; hash = "sha256-esMMA9z8z9Q909buPGZP1jujEWzdXT+Mxlwvjz0XqKk="; }; sourceRoot = "${src.name}/libs/core"; build-system = [ hatchling ]; pythonRelaxDeps = [ "packaging" "tenacity" ]; dependencies = [ jsonpatch langsmith Loading @@ -74,7 +69,6 @@ buildPythonPackage rec { blockbuster freezegun grandalf httpx langchain-tests numpy pytest-asyncio Loading
pkgs/development/python-modules/langchain-experimental/default.nix +9 −6 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ fetchFromGitHub, # build-system poetry-core, pdm-backend, # dependencies langchain-core, Loading @@ -20,14 +20,14 @@ buildPythonPackage rec { pname = "langchain-experimental"; version = "0.3.4"; version = "0.4.0"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain-experimental"; tag = "libs/experimental/v${version}"; hash = "sha256-KgGfJfxHOfpwVVo/OcbOjiO5pbxoDE1MiyKqUwsqfIg="; hash = "sha256-A5qCTOCmKt/a1DTKVOC/WwuLCqOYI5pGhAGo/Y4C/FY="; }; sourceRoot = "${src.name}/libs/experimental"; Loading @@ -38,7 +38,7 @@ buildPythonPackage rec { ]; build-system = [ poetry-core pdm-backend ]; pythonRelaxDeps = [ Loading Loading @@ -68,9 +68,12 @@ buildPythonPackage rec { meta = { changelog = "https://github.com/langchain-ai/langchain-experimental/releases/tag/${src.tag}"; description = "Package add experimental features on LangChain"; description = "Experimental features for LangChain"; homepage = "https://github.com/langchain-ai/langchain-experimental/tree/main/libs/experimental"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ mrdev023 ]; maintainers = with lib.maintainers; [ mrdev023 sarahec ]; }; }
pkgs/development/python-modules/langchain-groq/default.nix +2 −2 Original line number Diff line number Diff line Loading @@ -20,14 +20,14 @@ buildPythonPackage rec { pname = "langchain-groq"; version = "1.0.0"; version = "1.0.1"; pyproject = true; src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; tag = "langchain-groq==${version}"; hash = "sha256-OuZEdpPp0mKSejd43RW3bXzCzp3E4Pce7flsSr5JleY="; hash = "sha256-08dEZI+sI33i4FGSAVvE3i5KIRccdslw0PXqXlMLldE="; }; sourceRoot = "${src.name}/libs/partners/groq"; Loading