Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies httpx, httpx-sse, langchain-core, langchain-protocol, orjson, typing-extensions, websockets,
# passthru gitUpdater,}:
buildPythonPackage (finalAttrs: { pname = "langgraph-sdk"; version = "0.4.10"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "langchain-ai"; repo = "langgraph"; tag = "sdk==${finalAttrs.version}"; hash = "sha256-ypYo+pqQZ+KUYU+c8iwVApxFtdTpLd0NbJ/ZyiDzWyw="; };
sourceRoot = "${finalAttrs.src.name}/libs/sdk-py";
build-system = [ hatchling ];
pythonRelaxDeps = [ "websockets" ];
dependencies = [ httpx httpx-sse langchain-core langchain-protocol orjson typing-extensions websockets ];
disabledTests = [ "test_aevaluate_results" ]; # Compares execution time to magic number
pythonImportsCheck = [ "langgraph_sdk" ];
passthru = { # python updater script sets the wrong tag skipBulkUpdate = true; updateScript = gitUpdater { rev-prefix = "sdk=="; ignoredVersions = "a|b|dev|rc"; }; };
meta = { description = "SDK for interacting with the LangGraph Cloud REST API"; homepage = "https://github.com/langchain-ai/langgraph/tree/main/libs/sdk-py"; changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ sarahec ]; };})