From 159ad4ca18a548af74c6a13315408c6b0b4a19fd Mon Sep 17 00:00:00 2001 From: natsukium Date: Sun, 23 Jul 2023 21:49:04 +0900 Subject: [PATCH] python310Packages.langchain: 0.0.229 -> 0.0.240 Diff: https://github.com/hwchase17/langchain/compare/refs/tags/v0.0.229...v0.0.240 Changelog: https://github.com/hwchase17/langchain/releases/tag/v0.0.240 --- pkgs/development/python-modules/langchain/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index 707ce63ff38..8b537122e43 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -62,7 +62,7 @@ , chardet , requests-toolbelt , neo4j -, langchainplus-sdk +, langsmith # test dependencies , pytest-vcr , pytest-asyncio @@ -80,7 +80,7 @@ buildPythonPackage rec { pname = "langchain"; - version = "0.0.229"; + version = "0.0.240"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -89,9 +89,11 @@ buildPythonPackage rec { owner = "hwchase17"; repo = "langchain"; rev = "refs/tags/v${version}"; - hash = "sha256-9hPF+0bEcFGH2oop3e513kBp6UeUEBlPXD+2pZ4dCi0="; + hash = "sha256-7UwAdOzEgu3K/Gfq8D/GHNGxD6KhSx0xGMxtmpdnYxQ="; }; + sourceRoot = "source/libs/langchain"; + postPatch = '' substituteInPlace langchain/utilities/bash.py \ --replace '"env", ["-i", "bash", ' '"${lib.getExe bash}", [' @@ -227,7 +229,7 @@ buildPythonPackage rec { # azure-ai-formrecognizer # azure-ai-vision # azure-cognitiveservices-speech - langchainplus-sdk + langsmith ]; };