From f9f8890ea403bf1d36f6d9282f3dd77901ce0edd Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 8 Apr 2025 17:16:45 +0200 Subject: [PATCH 1/2] python312Packages.langgraph-prebuilt: fix by adding missing xxhash test input --- .../python-modules/langgraph-prebuilt/default.nix | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/langgraph-prebuilt/default.nix b/pkgs/development/python-modules/langgraph-prebuilt/default.nix index 73a1d6ade3ad..995c7f552494 100644 --- a/pkgs/development/python-modules/langgraph-prebuilt/default.nix +++ b/pkgs/development/python-modules/langgraph-prebuilt/default.nix @@ -16,11 +16,12 @@ langgraph-checkpoint-sqlite, postgresql, postgresqlTestHook, - psycopg-pool, psycopg, + psycopg-pool, pytest-asyncio, pytest-mock, pytestCheckHook, + xxhash, # passthru nix-update-script, @@ -55,19 +56,17 @@ buildPythonPackage rec { doCheck = !stdenv.hostPlatform.isDarwin; nativeCheckInputs = [ - pytestCheckHook - postgresql - postgresqlTestHook - ]; - - checkInputs = [ langgraph-checkpoint langgraph-checkpoint-postgres langgraph-checkpoint-sqlite + postgresql + postgresqlTestHook psycopg psycopg-pool pytest-asyncio pytest-mock + pytestCheckHook + xxhash ]; preCheck = '' From 4041ea763aa93dfef2740dcc1b405948546aed6e Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 8 Apr 2025 17:57:14 +0200 Subject: [PATCH 2/2] python312Packages.langgraph: disable failing tests --- pkgs/development/python-modules/langgraph/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/langgraph/default.nix b/pkgs/development/python-modules/langgraph/default.nix index 2716824e6d71..708da84981d8 100644 --- a/pkgs/development/python-modules/langgraph/default.nix +++ b/pkgs/development/python-modules/langgraph/default.nix @@ -23,7 +23,6 @@ langgraph-checkpoint-sqlite, langsmith, psycopg, - psycopg-pool, pydantic, pytest-asyncio, pytest-mock, @@ -115,10 +114,11 @@ buildPythonPackage rec { disabledTestPaths = [ # psycopg.errors.InsufficientPrivilege: permission denied to create database - "tests/test_pregel_async.py" - "tests/test_pregel.py" + "tests/test_checkpoint_migration.py" "tests/test_large_cases.py" "tests/test_large_cases_async.py" + "tests/test_pregel.py" + "tests/test_pregel_async.py" ]; passthru = {