python3Packages.langchain-community: 0.3.22 -> 0.3.24 (#408199)
This commit is contained in:
commit
20dbed8a6e
@ -23,6 +23,8 @@
|
|||||||
|
|
||||||
# tests
|
# tests
|
||||||
blockbuster,
|
blockbuster,
|
||||||
|
duckdb,
|
||||||
|
duckdb-engine,
|
||||||
httpx,
|
httpx,
|
||||||
langchain-tests,
|
langchain-tests,
|
||||||
lark,
|
lark,
|
||||||
@ -38,14 +40,14 @@
|
|||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "langchain-community";
|
pname = "langchain-community";
|
||||||
version = "0.3.22";
|
version = "0.3.24";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "langchain-ai";
|
owner = "langchain-ai";
|
||||||
repo = "langchain";
|
repo = "langchain-community";
|
||||||
tag = "langchain-community==${version}";
|
tag = "libs/community/v${version}";
|
||||||
hash = "sha256-fotu3vUCWnAVyjFjsIUjk1If81yQ3/YLj26PksmnvGE=";
|
hash = "sha256-4Rcczuz7tCb10HPvO15n48DBKjVBLXNPdRfD4lRKNGk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
sourceRoot = "${src.name}/libs/community";
|
sourceRoot = "${src.name}/libs/community";
|
||||||
@ -62,6 +64,10 @@ buildPythonPackage rec {
|
|||||||
"tenacity"
|
"tenacity"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonRemoveDeps = [
|
||||||
|
"bs4"
|
||||||
|
];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
aiohttp
|
aiohttp
|
||||||
dataclasses-json
|
dataclasses-json
|
||||||
@ -76,10 +82,13 @@ buildPythonPackage rec {
|
|||||||
sqlalchemy
|
sqlalchemy
|
||||||
tenacity
|
tenacity
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "langchain_community" ];
|
pythonImportsCheck = [ "langchain_community" ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
blockbuster
|
blockbuster
|
||||||
|
duckdb
|
||||||
|
duckdb-engine
|
||||||
httpx
|
httpx
|
||||||
langchain-tests
|
langchain-tests
|
||||||
lark
|
lark
|
||||||
@ -93,29 +102,18 @@ buildPythonPackage rec {
|
|||||||
toml
|
toml
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [ "tests/unit_tests" ];
|
pytestFlagsArray = [
|
||||||
|
"tests/unit_tests"
|
||||||
|
];
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Test require network access
|
# requires bs4, aka BeautifulSoup
|
||||||
"test_ovhcloud_embed_documents"
|
"test_importable_all"
|
||||||
"test_yandex"
|
|
||||||
"test_table_info"
|
|
||||||
"test_sql_database_run"
|
|
||||||
# pydantic.errors.PydanticUserError: `SQLDatabaseToolkit` is not fully defined; you should define `BaseCache`, then call `SQLDatabaseToolkit.model_rebuild()`.
|
|
||||||
"test_create_sql_agent"
|
|
||||||
# pydantic.errors.PydanticUserError: `NatBotChain` is not fully defined; you should define `BaseCache`, then call `NatBotChain.model_rebuild()`.
|
|
||||||
"test_proper_inputs"
|
|
||||||
# pydantic.errors.PydanticUserError: `NatBotChain` is not fully defined; you should define `BaseCache`, then call `NatBotChain.model_rebuild()`.
|
|
||||||
"test_variable_key_naming"
|
|
||||||
# Tests against magic values in dict
|
|
||||||
"test_serializable_mapping"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTestPaths = [
|
disabledTestPaths = [
|
||||||
# ValueError: Received unsupported arguments {'strict': None}
|
|
||||||
"tests/unit_tests/chat_models/test_cloudflare_workersai.py"
|
|
||||||
# depends on Pydantic v1 notations, will not load
|
# depends on Pydantic v1 notations, will not load
|
||||||
"tests/unit_tests/document_loaders/test_gitbook.py"
|
"tests/unit_tests/document_loaders/test_gitbook.py"
|
||||||
];
|
];
|
||||||
@ -123,14 +121,14 @@ buildPythonPackage rec {
|
|||||||
passthru.updateScript = nix-update-script {
|
passthru.updateScript = nix-update-script {
|
||||||
extraArgs = [
|
extraArgs = [
|
||||||
"--version-regex"
|
"--version-regex"
|
||||||
"langchain-community==([0-9.]+)"
|
"libs/community/v([0-9.]+)"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-community==${version}";
|
|
||||||
description = "Community contributed LangChain integrations";
|
description = "Community contributed LangChain integrations";
|
||||||
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/community";
|
homepage = "https://github.com/langchain-ai/langchain-community";
|
||||||
|
changelog = "https://github.com/langchain-ai/langchain-community/releases/tag/libs%2Fcommunity%2fv${version}";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
maintainers = with lib.maintainers; [
|
maintainers = with lib.maintainers; [
|
||||||
natsukium
|
natsukium
|
||||||
|
Loading…
x
Reference in New Issue
Block a user