Commit b9f7f0b6 authored by Sarah Clark's avatar Sarah Clark
Browse files

python3Packages.langgraph-runtime-inmem: init at 0.6.8

parent c2ae88e0
Loading
Loading
Loading
Loading
+61 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,
  hatchling,
  blockbuster,
  langgraph,
  langgraph-checkpoint,
  sse-starlette,
  starlette,
  structlog,
}:

buildPythonPackage rec {
  pname = "langgraph-runtime-inmem";
  version = "0.6.8";
  pyproject = true;

  # Not available in any repository
  src = fetchPypi {
    pname = "langgraph_runtime_inmem";
    inherit version;
    hash = "sha256-chPmwJ+tUJoRK5xX9+r6mbYf95ZbX4Z3mP6Ra19nBxM=";
  };

  # 1.5.24 (now 1.5.25) only affects non-cpython builds
  # upgrade: https://github.com/NixOS/nixpkgs/pull/431547
  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace "blockbuster>=1.5.24,<2.0.0" \
     "blockbuster>=1.5.23,<2.0.0"
  '';

  build-system = [
    hatchling
  ];

  dependencies = [
    blockbuster
    langgraph
    langgraph-checkpoint
    sse-starlette
    starlette
    structlog
  ];

  pythonImportsCheck = [
    "langgraph_runtime_inmem"
  ];

  # no tests
  doCheck = false;

  meta = {
    description = "Inmem implementation for the LangGraph API server";
    homepage = "https://pypi.org/project/langgraph-runtime-inmem/";
    # no changelog
    license = lib.licenses.elastic20;
    maintainers = with lib.maintainers; [ sarahec ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -7890,6 +7890,8 @@ self: super: with self; {
  langgraph-prebuilt = callPackage ../development/python-modules/langgraph-prebuilt { };
  langgraph-runtime-inmem = callPackage ../development/python-modules/langgraph-runtime-inmem { };
  langgraph-sdk = callPackage ../development/python-modules/langgraph-sdk { };
  langid = callPackage ../development/python-modules/langid { };