diff --git a/pkgs/development/python-modules/langchain-community/default.nix b/pkgs/development/python-modules/langchain-community/default.nix index 6bbcd117e480..ba7b07d1aea6 100644 --- a/pkgs/development/python-modules/langchain-community/default.nix +++ b/pkgs/development/python-modules/langchain-community/default.nix @@ -2,44 +2,49 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system poetry-core, - pythonOlder, + + # dependencies aiohttp, dataclasses-json, - langchain, langchain-core, - langchain-standard-tests, + langchain, langsmith, - httpx, - lark, + pyyaml, + requests, + sqlalchemy, + tenacity, + + # optional-dependencies + typer, numpy, + + # tests + httpx, + langchain-standard-tests, + lark, pandas, pytest-asyncio, pytest-mock, pytestCheckHook, - pyyaml, - requests, requests-mock, responses, - sqlalchemy, syrupy, - tenacity, toml, - typer, }: buildPythonPackage rec { pname = "langchain-community"; - version = "0.2.15"; + version = "0.2.16"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; rev = "refs/tags/langchain-community==${version}"; - hash = "sha256-R1C+tEXCLqYHzQ2zrYaYa6cqJn/UWZEHBMC+WjbdQaQ="; + hash = "sha256-0FKbx/ZPX7sioof5pMdqpnVWc46+eOiTIseyxwYK49E="; }; sourceRoot = "${src.name}/libs/community"; diff --git a/pkgs/development/python-modules/langchain-core/default.nix b/pkgs/development/python-modules/langchain-core/default.nix index 2ade17e754a7..4fa5de47893e 100644 --- a/pkgs/development/python-modules/langchain-core/default.nix +++ b/pkgs/development/python-modules/langchain-core/default.nix @@ -3,38 +3,45 @@ stdenv, buildPythonPackage, fetchFromGitHub, + + # build-system + poetry-core, + + # dependencies + jsonpatch, + langsmith, + packaging, + pyyaml, + tenacity, + + # optional-dependencies + pydantic, + + # tests freezegun, grandalf, httpx, - jsonpatch, - langsmith, numpy, - packaging, - poetry-core, - pydantic, pytest-asyncio, pytest-mock, pytest-xdist, pytestCheckHook, - pythonOlder, - pyyaml, syrupy, - tenacity, + + # passthru writeScript, }: buildPythonPackage rec { pname = "langchain-core"; - version = "0.2.37"; + version = "0.2.38"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; rev = "refs/tags/langchain-core==${version}"; - hash = "sha256-An2ApN0pgCrQjqu9XPFfPyPvWx0+6JnUkGPrcD0/3kg="; + hash = "sha256-3nRirzQe5KCVoeJ29fYelYuOD6r4adJof4NXreyfrzY="; }; sourceRoot = "${src.name}/libs/core"; diff --git a/pkgs/development/python-modules/langchain-text-splitters/default.nix b/pkgs/development/python-modules/langchain-text-splitters/default.nix index d35c78c22ced..5832e387e303 100644 --- a/pkgs/development/python-modules/langchain-text-splitters/default.nix +++ b/pkgs/development/python-modules/langchain-text-splitters/default.nix @@ -2,25 +2,28 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system poetry-core, + + # dependencies langchain-core, + + # tests pytest-asyncio, pytestCheckHook, - pythonOlder, }: buildPythonPackage rec { pname = "langchain-text-splitters"; - version = "0.2.2"; + version = "0.2.4"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; rev = "refs/tags/langchain-text-splitters==${version}"; - hash = "sha256-SixF3ZkN+gjQ4KYLhGoezdQAOQ1AlGEC6IBzHePF6/o="; + hash = "sha256-8n5eImRXOG/3tN/59Gd2/GpoGpt7P2ABj0T4pJi6xrk="; }; sourceRoot = "${src.name}/libs/text-splitters"; diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index 4add263f110f..59f0c09ec10c 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -1,46 +1,54 @@ { lib, - aiohttp, - async-timeout, - bash, buildPythonPackage, fetchFromGitHub, - freezegun, + pythonOlder, + + # build-system + poetry-core, + + # buildInputs + bash, + + # dependencies + aiohttp, langchain-core, langchain-text-splitters, langsmith, - lark, - numpy, - pandas, - poetry-core, pydantic, + pyyaml, + requests, + sqlalchemy, + tenacity, + async-timeout, + + # optional-dependencies + numpy, + + # tests + freezegun, + lark, + pandas, pytest-asyncio, pytest-mock, pytest-socket, pytestCheckHook, - pythonOlder, - pyyaml, requests-mock, - requests, responses, - sqlalchemy, syrupy, - tenacity, toml, }: buildPythonPackage rec { pname = "langchain"; - version = "0.2.15"; + version = "0.2.16"; pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "langchain-ai"; repo = "langchain"; rev = "refs/tags/langchain==${version}"; - hash = "sha256-8F6ntFstCTQjQNbE9oiYbpZ7kZ1grcnV3FHAfhFnAzA="; + hash = "sha256-8n5eImRXOG/3tN/59Gd2/GpoGpt7P2ABj0T4pJi6xrk="; }; sourceRoot = "${src.name}/libs/langchain"; diff --git a/pkgs/development/python-modules/langgraph-sdk/default.nix b/pkgs/development/python-modules/langgraph-sdk/default.nix index d002f958fb40..528e29c6bf3b 100644 --- a/pkgs/development/python-modules/langgraph-sdk/default.nix +++ b/pkgs/development/python-modules/langgraph-sdk/default.nix @@ -2,26 +2,29 @@ lib, buildPythonPackage, fetchFromGitHub, + + # build-system + poetry-core, + + # dependencies httpx, httpx-sse, orjson, - poetry-core, - pythonOlder, + + # passthru writeScript, }: buildPythonPackage rec { pname = "langgraph-sdk"; - version = "0.1.26"; + version = "0.1.30"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "langchain-ai"; repo = "langgraph"; rev = "refs/tags/sdk==${version}"; - hash = "sha256-o7JrB2WSWfPm927tDRMcjzx+6Io6Q+Yjp4XPVs2+F4o="; + hash = "sha256-gI12XuxFplqIKVlVjeO60YxT7WG/SSsZ0aWfjg5bHIs="; }; sourceRoot = "${src.name}/libs/sdk-py"; diff --git a/pkgs/development/python-modules/langgraph/default.nix b/pkgs/development/python-modules/langgraph/default.nix index 712e90a602c1..cb442e8919f4 100644 --- a/pkgs/development/python-modules/langgraph/default.nix +++ b/pkgs/development/python-modules/langgraph/default.nix @@ -1,43 +1,48 @@ { lib, buildPythonPackage, + fetchFromGitHub, + + # build-system + poetry-core, + + # dependencies + langchain-core, + langgraph-checkpoint, + + # tests aiosqlite, dataclasses-json, - fetchFromGitHub, grandalf, httpx, - langchain-core, - langgraph-sdk, - langgraph-checkpoint, langgraph-checkpoint-postgres, langgraph-checkpoint-sqlite, - psycopg, langsmith, - poetry-core, + psycopg, pydantic, pytest-asyncio, pytest-mock, pytest-repeat, pytest-xdist, pytestCheckHook, - pythonOlder, syrupy, postgresql, postgresqlTestHook, + + # passthru + langgraph-sdk, }: buildPythonPackage rec { pname = "langgraph"; - version = "0.2.4"; + version = "0.2.19"; pyproject = true; - disabled = pythonOlder "3.9"; - src = fetchFromGitHub { owner = "langchain-ai"; repo = "langgraph"; rev = "refs/tags/${version}"; - hash = "sha256-jUBaWXrHCXAph8EGEJnH7lbKIyjQ8oPt4eDMyIkbURo="; + hash = "sha256-qJIZAHftIKyWK0A/MjilalmmB8b8E7JtLnFn156hE08="; }; postgresqlTestSetupPost = '' @@ -65,6 +70,7 @@ buildPythonPackage rec { langgraph-checkpoint-sqlite langsmith psycopg + psycopg.pool pydantic pytest-asyncio pytest-mock @@ -93,6 +99,12 @@ buildPythonPackage rec { "test_remove_message_via_state_update" ]; + disabledTestPaths = [ + # psycopg.errors.InsufficientPrivilege: permission denied to create database + "tests/test_pregel_async.py" + "tests/test_pregel.py" + ]; + passthru = { updateScript = langgraph-sdk.updateScript; };