Merge pull request #266794 from natsukium/langchain/update

python311Packages.langchain: 0.325 -> 0.0.334; python311Packages.langsmith: 0.0.57 -> 0.0.63

authored by

Nick Cao and committed by
GitHub
a4870a06 da249bc2

+15 -9
+11 -7
pkgs/development/python-modules/langchain/default.nix
··· 42 , librosa 43 , lxml 44 , manifest-ml 45 - , markdownify 46 , neo4j 47 , networkx 48 , nlpcloud ··· 76 , pytest-asyncio 77 , pytest-mock 78 , pytest-socket 79 - , pytest-vcr 80 , pytestCheckHook 81 , responses 82 , syrupy 83 , toml ··· 85 86 buildPythonPackage rec { 87 pname = "langchain"; 88 - version = "0.0.325"; 89 pyproject = true; 90 91 disabled = pythonOlder "3.8"; ··· 94 owner = "hwchase17"; 95 repo = "langchain"; 96 rev = "refs/tags/v${version}"; 97 - hash = "sha256-/bk4RafDDL4nozyFOiikyU4auBSftej21m5/FnEtDog="; 98 }; 99 100 sourceRoot = "${src.name}/libs/langchain"; ··· 253 254 nativeCheckInputs = [ 255 freezegun 256 - markdownify 257 pandas 258 pytest-asyncio 259 pytest-mock 260 pytest-socket 261 - pytest-vcr 262 pytestCheckHook 263 responses 264 syrupy 265 toml 266 - ] ++ passthru.optional-dependencies.all; 267 268 pytestFlagsArray = [ 269 # integration_tests have many network, db access and require `OPENAI_API_KEY`, etc. 270 "tests/unit_tests" 271 ]; 272 273 disabledTests = [ ··· 277 278 # these tests have network access 279 "test_socket_disabled" 280 ]; 281 282 meta = with lib; {
··· 42 , librosa 43 , lxml 44 , manifest-ml 45 , neo4j 46 , networkx 47 , nlpcloud ··· 75 , pytest-asyncio 76 , pytest-mock 77 , pytest-socket 78 , pytestCheckHook 79 + , requests-mock 80 , responses 81 , syrupy 82 , toml ··· 84 85 buildPythonPackage rec { 86 pname = "langchain"; 87 + version = "0.0.334"; 88 pyproject = true; 89 90 disabled = pythonOlder "3.8"; ··· 93 owner = "hwchase17"; 94 repo = "langchain"; 95 rev = "refs/tags/v${version}"; 96 + hash = "sha256-mXPqc8wF9DhEtITm8h5R9kHBcMJ7AEK4kL5Z7V2p8NE="; 97 }; 98 99 sourceRoot = "${src.name}/libs/langchain"; ··· 252 253 nativeCheckInputs = [ 254 freezegun 255 + lark 256 pandas 257 pytest-asyncio 258 pytest-mock 259 pytest-socket 260 pytestCheckHook 261 + requests-mock 262 responses 263 syrupy 264 toml 265 + ]; 266 267 pytestFlagsArray = [ 268 # integration_tests have many network, db access and require `OPENAI_API_KEY`, etc. 269 "tests/unit_tests" 270 + "--only-core" 271 ]; 272 273 disabledTests = [ ··· 277 278 # these tests have network access 279 "test_socket_disabled" 280 + ]; 281 + 282 + pythonImportsCheck = [ 283 + "langchain" 284 ]; 285 286 meta = with lib; {
+4 -2
pkgs/development/python-modules/langsmith/default.nix
··· 12 13 buildPythonPackage rec { 14 pname = "langsmith"; 15 - version = "0.0.57"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; ··· 21 owner = "langchain-ai"; 22 repo = "langsmith-sdk"; 23 rev = "refs/tags/v${version}"; 24 - hash = "sha256-3P0vB7wz/K3skejyPwtFZN17mFrOw9TGLHTJHvu4m7M="; 25 }; 26 27 sourceRoot = "${src.name}/python"; ··· 59 pythonImportsCheck = [ 60 "langsmith" 61 ]; 62 63 meta = with lib; { 64 description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform";
··· 12 13 buildPythonPackage rec { 14 pname = "langsmith"; 15 + version = "0.0.63"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.8"; ··· 21 owner = "langchain-ai"; 22 repo = "langsmith-sdk"; 23 rev = "refs/tags/v${version}"; 24 + hash = "sha256-KE+WMnuWAq1stZuuwZkOPOKQ2lZNKtxzNbZMRoOdmz0="; 25 }; 26 27 sourceRoot = "${src.name}/python"; ··· 59 pythonImportsCheck = [ 60 "langsmith" 61 ]; 62 + 63 + __darwinAllowLocalNetworking = true; 64 65 meta = with lib; { 66 description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform";