python3Packages.langgraph*: fix bad bulk update, add `skipBulkUpdate=true` (#437178)

Changed files
+57 -29
pkgs
development
python-modules
langgraph
langgraph-checkpoint
langgraph-checkpoint-postgres
langgraph-checkpoint-sqlite
langgraph-cli
langgraph-prebuilt
langgraph-sdk
+9 -5
pkgs/development/python-modules/langgraph-checkpoint-postgres/default.nix
···
buildPythonPackage rec {
pname = "langgraph-checkpoint-postgres";
-
version = "2.1.1";
+
version = "2.0.23";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
-
tag = "checkpoint==${version}";
-
hash = "sha256-UY3AChShKfOrtOQzOm5vi3Yy3rlBc+TAje9L2L6My/U=";
+
tag = "checkpointpostgres==${version}";
+
hash = "sha256-QAzT8T3bf3R3gwI/iWDYYDz0SxgLZsP61oMk72dYz4s=";
};
postgresqlTestSetupPost = ''
···
pythonImportsCheck = [ "langgraph.checkpoint.postgres" ];
-
passthru.updateScript = gitUpdater {
-
rev-prefix = "checkpointpostgres==";
+
passthru = {
+
# python updater script sets the wrong tag
+
skipBulkUpdate = true;
+
updateScript = gitUpdater {
+
rev-prefix = "checkpointpostgres==";
+
};
};
meta = {
+6 -2
pkgs/development/python-modules/langgraph-checkpoint-sqlite/default.nix
···
"test_search"
];
-
passthru.updateScript = gitUpdater {
-
rev-prefix = "checkpointsqlite==";
+
passthru = {
+
# python updater script sets the wrong tag
+
skipBulkUpdate = true;
+
updateScript = gitUpdater {
+
rev-prefix = "checkpointsqlite==";
+
};
};
meta = {
+6 -2
pkgs/development/python-modules/langgraph-checkpoint/default.nix
···
"test_embed_with_path"
];
-
passthru.updateScript = gitUpdater {
-
rev-prefix = "checkpoint==";
+
passthru = {
+
# python updater script sets the wrong tag
+
skipBulkUpdate = true;
+
updateScript = gitUpdater {
+
rev-prefix = "checkpoint==";
+
};
};
meta = {
+9 -5
pkgs/development/python-modules/langgraph-cli/default.nix
···
buildPythonPackage rec {
pname = "langgraph-cli";
-
version = "2.1.1";
+
version = "0.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
-
tag = "checkpoint==${version}";
-
hash = "sha256-UY3AChShKfOrtOQzOm5vi3Yy3rlBc+TAje9L2L6My/U=";
+
tag = "cli==${version}";
+
hash = "sha256-/SPrX5O7Tt7fhATqN2fS7wSM+CJTY3QLmlUbfaCoFzo=";
};
sourceRoot = "${src.name}/libs/cli";
···
"test_build_command_shows_wolfi_warning"
];
-
passthru.updateScript = gitUpdater {
-
rev-prefix = "cli==";
+
passthru = {
+
# python updater script sets the wrong tag
+
skipBulkUpdate = true;
+
updateScript = gitUpdater {
+
rev-prefix = "cli==";
+
};
};
meta = {
+6 -2
pkgs/development/python-modules/langgraph-prebuilt/default.nix
···
"tests/conftest.py"
];
-
passthru.updateScript = gitUpdater {
-
rev-prefix = "prebuilt==";
+
passthru = {
+
# python updater script sets the wrong tag
+
skipBulkUpdate = true;
+
updateScript = gitUpdater {
+
rev-prefix = "prebuilt==";
+
};
};
meta = {
+9 -5
pkgs/development/python-modules/langgraph-sdk/default.nix
···
buildPythonPackage rec {
pname = "langgraph-sdk";
-
version = "2.1.1";
+
version = "0.2.3";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
-
tag = "checkpoint==${version}";
-
hash = "sha256-UY3AChShKfOrtOQzOm5vi3Yy3rlBc+TAje9L2L6My/U=";
+
tag = "sdk==${version}";
+
hash = "sha256-X8ysXd5CwMiJMZ6GdiPjjjlm6x88Ibub04fhjDzi59M=";
};
sourceRoot = "${src.name}/libs/sdk-py";
···
pythonImportsCheck = [ "langgraph_sdk" ];
-
passthru.updateScript = gitUpdater {
-
rev-prefix = "sdk==";
+
passthru = {
+
# python updater script sets the wrong tag
+
skipBulkUpdate = true;
+
updateScript = gitUpdater {
+
rev-prefix = "sdk==";
+
};
};
meta = {
+12 -8
pkgs/development/python-modules/langgraph/default.nix
···
}:
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 = ''
···
];
# 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 = {