From 21fcc1de89cd11cf5c1a587765fce0fea3d2328a Mon Sep 17 00:00:00 2001 From: natsukium Date: Thu, 8 Jun 2023 00:48:04 +0900 Subject: [PATCH] python3Packages.langchain: 0.0.188 -> 0.0.193 Diff: https://github.com/hwchase17/langchain/compare/refs/tags/v0.0.188...v0.0.193 Changelog: https://github.com/hwchase17/langchain/releases/tag/v0.0.193 --- .../development/python-modules/langchain/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/langchain/default.nix b/pkgs/development/python-modules/langchain/default.nix index 9dee63430512..3a1b6dcb3357 100644 --- a/pkgs/development/python-modules/langchain/default.nix +++ b/pkgs/development/python-modules/langchain/default.nix @@ -59,6 +59,7 @@ , chardet , requests-toolbelt , neo4j +, langchainplus-sdk # test dependencies , pytest-vcr , pytest-asyncio @@ -70,11 +71,12 @@ , responses , pexpect , pytestCheckHook +, pythonRelaxDepsHook }: buildPythonPackage rec { pname = "langchain"; - version = "0.0.188"; + version = "0.0.193"; format = "pyproject"; disabled = pythonOlder "3.8"; @@ -83,7 +85,7 @@ buildPythonPackage rec { owner = "hwchase17"; repo = "langchain"; rev = "refs/tags/v${version}"; - hash = "sha256-hf0pfWPXdutUKDzt56Uc0Q02TzScLAegQZ2gdR2IM/c="; + hash = "sha256-Qg6kFFPOk+XpLzEl3YSI9I4fPq9KB4UtQf9Khgut7FE="; }; postPatch = '' @@ -95,6 +97,7 @@ buildPythonPackage rec { nativeBuildInputs = [ poetry-core + pythonRelaxDepsHook ]; buildInputs = [ @@ -215,9 +218,14 @@ buildPythonPackage rec { # azure-ai-formrecognizer # azure-ai-vision # azure-cognitiveservices-speech + langchainplus-sdk ]; }; + pythonRelaxDeps = [ + "langchainplus-sdk" + ]; + nativeCheckInputs = [ pytestCheckHook pytest-vcr