1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 hatchling, 6 blockbuster, 7 langgraph, 8 langgraph-checkpoint, 9 sse-starlette, 10 starlette, 11 structlog, 12}: 13 14buildPythonPackage rec { 15 pname = "langgraph-runtime-inmem"; 16 version = "0.14.1"; 17 pyproject = true; 18 19 # Not available in any repository 20 src = fetchPypi { 21 pname = "langgraph_runtime_inmem"; 22 inherit version; 23 hash = "sha256-OIgTFwx0f8W/oRpF12jtaENWcripe1Tr/6Mx0k+nnLw="; 24 }; 25 26 build-system = [ 27 hatchling 28 ]; 29 30 dependencies = [ 31 blockbuster 32 langgraph 33 langgraph-checkpoint 34 sse-starlette 35 starlette 36 structlog 37 ]; 38 39 # Can remove after blockbuster version bump 40 # https://github.com/NixOS/nixpkgs/pull/431547 41 pythonRelaxDeps = [ 42 "blockbuster" 43 ]; 44 45 pythonImportsCheck = [ 46 "langgraph_runtime_inmem" 47 ]; 48 49 # no tests 50 doCheck = false; 51 52 meta = { 53 description = "Inmem implementation for the LangGraph API server"; 54 homepage = "https://pypi.org/project/langgraph-runtime-inmem/"; 55 # no changelog 56 license = lib.licenses.elastic20; 57 maintainers = with lib.maintainers; [ sarahec ]; 58 }; 59}