Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 (finalAttrs: {
15 pname = "langgraph-runtime-inmem";
16 version = "0.23.1";
17 pyproject = true;
18
19 # Not available in any repository
20 src = fetchPypi {
21 pname = "langgraph_runtime_inmem";
22 inherit (finalAttrs) version;
23 hash = "sha256-94VLsnQt15eujRmlHTty1iGLUcuWGvT+m0N7tQcQiQs=";
24 };
25
26 build-system = [ hatchling ];
27
28 dependencies = [
29 blockbuster
30 langgraph
31 langgraph-checkpoint
32 sse-starlette
33 starlette
34 structlog
35 ];
36
37 pythonImportsCheck = [ "langgraph_runtime_inmem" ];
38
39 # no tests
40 doCheck = false;
41
42 meta = {
43 description = "Inmem implementation for the LangGraph API server";
44 homepage = "https://pypi.org/project/langgraph-runtime-inmem/";
45 # no changelog
46 license = lib.licenses.elastic20;
47 maintainers = with lib.maintainers; [ sarahec ];
48 };
49})