python3Packages.langchain-community: 0.3.22 -> 0.3.24 (#408199)

authored by Pol Dellaiera and committed by GitHub 20dbed8a e3e0deee

+21 -23
+21 -23
pkgs/development/python-modules/langchain-community/default.nix
··· 23 23 24 24 # tests 25 25 blockbuster, 26 + duckdb, 27 + duckdb-engine, 26 28 httpx, 27 29 langchain-tests, 28 30 lark, ··· 38 40 39 41 buildPythonPackage rec { 40 42 pname = "langchain-community"; 41 - version = "0.3.22"; 43 + version = "0.3.24"; 42 44 pyproject = true; 43 45 44 46 src = fetchFromGitHub { 45 47 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="; 49 51 }; 50 52 51 53 sourceRoot = "${src.name}/libs/community"; ··· 62 64 "tenacity" 63 65 ]; 64 66 67 + pythonRemoveDeps = [ 68 + "bs4" 69 + ]; 70 + 65 71 dependencies = [ 66 72 aiohttp 67 73 dataclasses-json ··· 76 82 sqlalchemy 77 83 tenacity 78 84 ]; 85 + 79 86 pythonImportsCheck = [ "langchain_community" ]; 80 87 81 88 nativeCheckInputs = [ 82 89 blockbuster 90 + duckdb 91 + duckdb-engine 83 92 httpx 84 93 langchain-tests 85 94 lark ··· 93 102 toml 94 103 ]; 95 104 96 - pytestFlagsArray = [ "tests/unit_tests" ]; 105 + pytestFlagsArray = [ 106 + "tests/unit_tests" 107 + ]; 97 108 98 109 __darwinAllowLocalNetworking = true; 99 110 100 111 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" 114 114 ]; 115 115 116 116 disabledTestPaths = [ 117 - # ValueError: Received unsupported arguments {'strict': None} 118 - "tests/unit_tests/chat_models/test_cloudflare_workersai.py" 119 117 # depends on Pydantic v1 notations, will not load 120 118 "tests/unit_tests/document_loaders/test_gitbook.py" 121 119 ]; ··· 123 121 passthru.updateScript = nix-update-script { 124 122 extraArgs = [ 125 123 "--version-regex" 126 - "langchain-community==([0-9.]+)" 124 + "libs/community/v([0-9.]+)" 127 125 ]; 128 126 }; 129 127 130 128 meta = { 131 - changelog = "https://github.com/langchain-ai/langchain/releases/tag/langchain-community==${version}"; 132 129 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}"; 134 132 license = lib.licenses.mit; 135 133 maintainers = with lib.maintainers; [ 136 134 natsukium