Unverified Commit 4b80eb6c authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.langgraph*: switch to `gitUpdater`, use `${src.tag}` (#415991)

parents ead4ef49 9c4adc04
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@
  pytest-asyncio,

  # passthru
  nix-update-script,
  gitUpdater,
}:

buildPythonPackage rec {
@@ -90,17 +90,14 @@ buildPythonPackage rec {

  pythonImportsCheck = [ "langgraph.checkpoint.postgres" ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "checkpointpostgres==(\\d+\\.\\d+\\.\\d+)"
    ];
  passthru.updateScript = gitUpdater {
    rev-prefix = "checkpointpostgres==";
  };

  meta = {
    description = "Library with a Postgres implementation of LangGraph checkpoint saver";
    homepage = "https://github.com/langchain-ai/langgraph/tree/main/libs/checkpoint-postgres";
    changelog = "https://github.com/langchain-ai/langgraph/releases/tag/checkpointpostgres==${src.tag}";
    changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [
      drupol
+4 −7
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
  pytestCheckHook,

  # passthru
  nix-update-script,
  gitUpdater,
}:

buildPythonPackage rec {
@@ -53,15 +53,12 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "checkpoint-sqlite==(\\d+\\.\\d+\\.\\d+)"
    ];
  passthru.updateScript = gitUpdater {
    rev-prefix = "checkpointsqlite==";
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langgraph/releases/tag/checkpointsqlite==${version}";
    changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${src.tag}";
    description = "Library with a SQLite implementation of LangGraph checkpoint saver";
    homepage = "https://github.com/langchain-ai/langgraph/tree/main/libs/checkpoint-sqlite";
    license = lib.licenses.mit;
+4 −7
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@
  pytestCheckHook,

  # passthru
  nix-update-script,
  gitUpdater,
}:

buildPythonPackage rec {
@@ -53,15 +53,12 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "checkpoint==([0-9.]+)"
    ];
  passthru.updateScript = gitUpdater {
    rev-prefix = "checkpoint==";
  };

  meta = {
    changelog = "https://github.com/langchain-ai/langgraph/releases/tag/checkpoint==${version}";
    changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${src.tag}";
    description = "Library with base interfaces for LangGraph checkpoint savers";
    homepage = "https://github.com/langchain-ai/langgraph/tree/main/libs/checkpoint";
    license = lib.licenses.mit;
+3 −6
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
  docker-compose,

  # passthru
  nix-update-script,
  gitUpdater,
}:

buildPythonPackage rec {
@@ -59,11 +59,8 @@ buildPythonPackage rec {
    "test_dockerfile_command_with_docker_compose"
  ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "cli==(\\d+\\.\\d+\\.\\d+)"
    ];
  passthru.updateScript = gitUpdater {
    rev-prefix = "cli==";
  };

  meta = {
+4 −7
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@
  xxhash,

  # passthru
  nix-update-script,
  gitUpdater,
}:
# langgraph-prebuilt isn't meant to be a standalone package but is bundled into langgraph at build time.
# It exists so the langgraph team can iterate on it without having to rebuild langgraph.
@@ -86,17 +86,14 @@ buildPythonPackage rec {
    "tests/test_react_agent.py"
  ];

  passthru.updateScript = nix-update-script {
    extraArgs = [
      "--version-regex"
      "prebuilt==(\\d+\\.\\d+\\.\\d+)"
    ];
  passthru.updateScript = gitUpdater {
    rev-prefix = "prebuilt==";
  };

  meta = {
    description = "Prebuilt agents add-on for Langgraph. Should always be bundled with langgraph";
    homepage = "https://github.com/langchain-ai/langgraph/tree/main/libs/prebuilt";
    changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${version}";
    changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sarahec ];
  };
Loading