Files
nixpkgs/pkgs/development/python-modules/langgraph-sdk/default.nix
Sarah Clark 0dc4e47b40 python3Packages.langgraph-sdk: 0.3.6 -> 0.3.9
(cherry picked from commit 0679e6989e)
2026-03-09 12:08:28 -07:00

64 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
hatchling,
# dependencies
httpx,
httpx-sse,
orjson,
typing-extensions,
# passthru
gitUpdater,
}:
buildPythonPackage rec {
pname = "langgraph-sdk";
version = "0.3.9";
pyproject = true;
src = fetchFromGitHub {
owner = "langchain-ai";
repo = "langgraph";
tag = "sdk==${version}";
hash = "sha256-E/GM0p9x2/hNfL2u4TsG9UxnnMX42f5PjeIo9KfRY0k=";
};
sourceRoot = "${src.name}/libs/sdk-py";
build-system = [ hatchling ];
dependencies = [
httpx
httpx-sse
orjson
typing-extensions
];
pythonRelaxDeps = [ "orjson" ];
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==";
};
};
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/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sarahec ];
};
}