about summary refs log tree commit diff
path: root/pkgs/development/python-modules/langchain
diff options
context:
space:
mode:
authornatsukium <tomoya.otabi@gmail.com>2023-10-22 15:02:26 +0900
committerYt <happysalada@tuta.io>2023-10-22 17:00:29 +0000
commit039f216921326f6eb42bc38ec0c751a1c75995a5 (patch)
tree8636aea9bcd16f5e8edcb8572c3bc22a4911a5e9 /pkgs/development/python-modules/langchain
parent0dd3f24ea591236a1eb6a04da6398313f2c3ab93 (diff)
python311Packages.langchain: 0.0.291 -> 0.0.320
Diff: https://github.com/hwchase17/langchain/compare/refs/tags/v0.0.291...v0.0.320

Changelog: https://github.com/hwchase17/langchain/releases/tag/v0.0.320
Diffstat (limited to 'pkgs/development/python-modules/langchain')
-rw-r--r--pkgs/development/python-modules/langchain/default.nix15
1 files changed, 6 insertions, 9 deletions
diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix
index 6f77951ccec5d..a2d00f4ba836e 100644
--- a/pkgs/development/python-modules/langchain/default.nix
+++ b/pkgs/development/python-modules/langchain/default.nix
@@ -6,8 +6,10 @@
 , pythonRelaxDepsHook
 , poetry-core
 , aiohttp
+, anyio
 , async-timeout
 , dataclasses-json
+, jsonpatch
 , langsmith
 , numexpr
 , numpy
@@ -86,7 +88,7 @@
 
 buildPythonPackage rec {
   pname = "langchain";
-  version = "0.0.291";
+  version = "0.0.320";
   format = "pyproject";
 
   disabled = pythonOlder "3.8";
@@ -95,18 +97,11 @@ buildPythonPackage rec {
     owner = "hwchase17";
     repo = "langchain";
     rev = "refs/tags/v${version}";
-    hash = "sha256-Ilmu4l+DCu2soX5kANegk/DMvr2x9AXUcQ1aZOKbQJc=";
+    hash = "sha256-Yw3gGt/OvrQ4IYauFUt6pBWOecy+PaWiGXoo5dWev5M=";
   };
 
   sourceRoot = "${src.name}/libs/langchain";
 
-  postPatch = ''
-    substituteInPlace langchain/utilities/bash.py \
-      --replace '"env", ["-i", "bash", ' '"${lib.getExe bash}", ['
-    substituteInPlace tests/unit_tests/test_bash.py \
-      --replace "/bin/sh" "${bash}/bin/sh"
-  '';
-
   nativeBuildInputs = [
     poetry-core
     pythonRelaxDepsHook
@@ -128,6 +123,8 @@ buildPythonPackage rec {
     aiohttp
     numexpr
     langsmith
+    anyio
+    jsonpatch
   ] ++ lib.optionals (pythonOlder "3.11") [
     async-timeout
   ];