langchain{-community,core,text-splitters}: update (#340049)

This commit is contained in:
OTABI Tomoya 2024-09-07 11:26:49 +09:00 committed by GitHub
commit 7191cf6db4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 103 additions and 65 deletions

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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";

View File

@ -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;
};