Commit 6a8c9fb8 authored by Sarah Clark's avatar Sarah Clark
Browse files

python3Packages.langgraph-checkpoint-mongodb: apply correction after python-updater-script

parent b98c7ea4
Loading
Loading
Loading
Loading
+16 −3
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  gitUpdater,

  # build-system
  hatchling,
@@ -14,14 +15,14 @@

buildPythonPackage rec {
  pname = "langgraph-checkpoint-mongodb";
  version = "0.11.0";
  version = "0.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "langchain-ai";
    repo = "langchain-mongodb";
    tag = "libs/langchain-mongodb/v${version}";
    hash = "sha256-dO0dASjyNMxnbxZ/ry8lcJxedPdrv6coYiTjOcaT8/0=";
    tag = "libs/langgraph-checkpoint-mongodb/v${version}";
    hash = "sha256-vCiZ6Mp6aHmSEkLbeM6qTLJaxH0uoAdq80olTT5saX0=";
  };

  sourceRoot = "${src.name}/libs/langgraph-checkpoint-mongodb";
@@ -30,6 +31,10 @@ buildPythonPackage rec {
    hatchling
  ];

  pythonRelaxDeps = [
    "pymongo"
  ];

  dependencies = [
    langgraph-checkpoint
    langchain-mongodb
@@ -41,6 +46,14 @@ buildPythonPackage rec {
  # Connection refused (to localhost:27017) for all tests
  doCheck = false;

  passthru = {
    # python updater script sets the wrong tag
    skipBulkUpdate = true;
    updateScript = gitUpdater {
      rev-prefix = "libs/langgraph-checkpoint-mongodb/v";
    };
  };

  # no pythonImportsCheck as this package does not provide any direct imports
  pythonImportsCheck = [ "langgraph.checkpoint.mongodb" ];