Skip to content

Commit 432767e

Browse files
committed
python3Packages.langchain-community: 0.3.22 -> 0.3.24
Includes switch to new repository
1 parent bc75094 commit 432767e

File tree

1 file changed

+21
-23
lines changed
  • pkgs/development/python-modules/langchain-community

1 file changed

+21
-23
lines changed

pkgs/development/python-modules/langchain-community/default.nix

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323

2424
# tests
2525
blockbuster,
26+
duckdb,
27+
duckdb-engine,
2628
httpx,
2729
langchain-tests,
2830
lark,
@@ -38,14 +40,14 @@
3840

3941
buildPythonPackage rec {
4042
pname = "langchain-community";
41-
version = "0.3.22";
43+
version = "0.3.24";
4244
pyproject = true;
4345

4446
src = fetchFromGitHub {
4547
owner = "langchain-ai";
46-
repo = "langchain";
47-
tag = "langchain-community==${version}";
48-
hash = "sha256-fotu3vUCWnAVyjFjsIUjk1If81yQ3/YLj26PksmnvGE=";
48+
repo = "langchain-community";
49+
tag = "libs/community/v${version}";
50+
hash = "sha256-4Rcczuz7tCb10HPvO15n48DBKjVBLXNPdRfD4lRKNGk=";
4951
};
5052

5153
sourceRoot = "${src.name}/libs/community";
@@ -62,6 +64,10 @@ buildPythonPackage rec {
6264
"tenacity"
6365
];
6466

67+
pythonRemoveDeps = [
68+
"bs4"
69+
];
70+
6571
dependencies = [
6672
aiohttp
6773
dataclasses-json
@@ -76,10 +82,13 @@ buildPythonPackage rec {
7682
sqlalchemy
7783
tenacity
7884
];
85+
7986
pythonImportsCheck = [ "langchain_community" ];
8087

8188
nativeCheckInputs = [
8289
blockbuster
90+
duckdb
91+
duckdb-engine
8392
httpx
8493
langchain-tests
8594
lark
@@ -93,44 +102,33 @@ buildPythonPackage rec {
93102
toml
94103
];
95104

96-
pytestFlagsArray = [ "tests/unit_tests" ];
105+
pytestFlagsArray = [
106+
"tests/unit_tests"
107+
];
97108

98109
__darwinAllowLocalNetworking = true;
99110

100111
disabledTests = [
101-
# Test require network access
102-
"test_ovhcloud_embed_documents"
103-
"test_yandex"
104-
"test_table_info"
105-
"test_sql_database_run"
106-
# pydantic.errors.PydanticUserError: `SQLDatabaseToolkit` is not fully defined; you should define `BaseCache`, then call `SQLDatabaseToolkit.model_rebuild()`.
107-
"test_create_sql_agent"
108-
# pydantic.errors.PydanticUserError: `NatBotChain` is not fully defined; you should define `BaseCache`, then call `NatBotChain.model_rebuild()`.
109-
"test_proper_inputs"
110-
# pydantic.errors.PydanticUserError: `NatBotChain` is not fully defined; you should define `BaseCache`, then call `NatBotChain.model_rebuild()`.
111-
"test_variable_key_naming"
112-
# Tests against magic values in dict
113-
"test_serializable_mapping"
112+
# requires bs4, aka BeautifulSoup
113+
"test_importable_all"
114114
];
115115

116116
disabledTestPaths = [
117-
# ValueError: Received unsupported arguments {'strict': None}
118-
"tests/unit_tests/chat_models/test_cloudflare_workersai.py"
119117
# depends on Pydantic v1 notations, will not load
120118
"tests/unit_tests/document_loaders/test_gitbook.py"
121119
];
122120

123121
passthru.updateScript = nix-update-script {
124122
extraArgs = [
125123
"--version-regex"
126-
"langchain-community==([0-9.]+)"
124+
"libs/community/v([0-9.]+)"
127125
];
128126
};
129127

130128
meta = {
131-
changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-community==${version}";
132129
description = "Community contributed LangChain integrations";
133-
homepage = "https://github.com/langchain-ai/langchain/tree/master/libs/community";
130+
homepage = "https://github.com/langchain-ai/langchain-community";
131+
changelog = "https://github.com/langchain-ai/langchain-community/releases/tag/libs%2Fcommunity%2fv${version}";
134132
license = lib.licenses.mit;
135133
maintainers = with lib.maintainers; [
136134
natsukium

0 commit comments

Comments
 (0)