python313Packages.langchain: fix build
Shell tool defaults to `/bin/bash`.
This commit is contained in:
@@ -21,6 +21,9 @@
|
||||
sqlalchemy,
|
||||
tenacity,
|
||||
|
||||
# runtime
|
||||
runtimeShell,
|
||||
|
||||
# tests
|
||||
blockbuster,
|
||||
freezegun,
|
||||
@@ -54,6 +57,11 @@ buildPythonPackage rec {
|
||||
|
||||
sourceRoot = "${src.name}/libs/langchain_v1";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace langchain/agents/middleware/shell_tool.py \
|
||||
--replace-fail '"/bin/bash"' '"${runtimeShell}"'
|
||||
'';
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
|
||||
Reference in New Issue
Block a user