python313Packages.langchain: fix build

Shell tool defaults to `/bin/bash`.
This commit is contained in:
Tom Hunze
2025-11-14 10:25:44 +01:00
parent 0d9bcf4d56
commit 85857bfbc2
@@ -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 = [