Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 hatchling, 8 9 # dependencies 10 httpx, 11 httpx-sse, 12 orjson, 13 typing-extensions, 14 15 # passthru 16 gitUpdater, 17}: 18 19buildPythonPackage rec { 20 pname = "langgraph-sdk"; 21 version = "0.2.0"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "langchain-ai"; 26 repo = "langgraph"; 27 tag = "sdk==${version}"; 28 hash = "sha256-uhVdtB/fLy0hfZKfzNV2eoO83bvKppGVl4Lm8IEscL0="; 29 }; 30 31 sourceRoot = "${src.name}/libs/sdk-py"; 32 33 build-system = [ hatchling ]; 34 35 dependencies = [ 36 httpx 37 httpx-sse 38 orjson 39 typing-extensions 40 ]; 41 42 disabledTests = [ "test_aevaluate_results" ]; # Compares execution time to magic number 43 44 pythonImportsCheck = [ "langgraph_sdk" ]; 45 46 passthru.updateScript = gitUpdater { 47 rev-prefix = "sdk=="; 48 }; 49 50 meta = { 51 description = "SDK for interacting with the LangGraph Cloud REST API"; 52 homepage = "https://github.com/langchain-ai/langgraph/tree/main/libs/sdk-py"; 53 changelog = "https://github.com/langchain-ai/langgraph/releases/tag/${src.tag}"; 54 license = lib.licenses.mit; 55 maintainers = with lib.maintainers; [ sarahec ]; 56 }; 57}