python3Packages.langgraph: repair broken update, apply skipBulkUpdate

This commit is contained in:
Sarah Clark
2025-08-26 09:09:19 -07:00
parent 02fc1bdb2c
commit 7d288dec01

View File

@@ -40,14 +40,14 @@
}:
buildPythonPackage rec {
pname = "langgraph";
version = "2.1.1";
version = "0.6.4";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = "checkpoint==${version}";
hash = "sha256-UY3AChShKfOrtOQzOm5vi3Yy3rlBc+TAje9L2L6My/U=";
tag = version;
hash = "sha256-9jl16cKp3E7j79PXrr/3splrcJtfQQN7yFJ5sfa6c+I=";
};
postgresqlTestSetupPost = ''
@@ -133,11 +133,15 @@ buildPythonPackage rec {
];
# Since `langgraph` is the only unprefixed package, we have to use an explicit match
passthru.updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"([0-9.]+)"
];
passthru = {
# python updater script sets the wrong tag
skipBulkUpdate = true;
updateScript = nix-update-script {
extraArgs = [
"--version-regex"
"([0-9.]+)"
];
};
};
meta = {