From 22d1615471aa7d53991dc604f7ef8a79dba1dcc4 Mon Sep 17 00:00:00 2001 From: Luna Nova Date: Sat, 20 Jun 2026 12:54:22 -0700 Subject: [PATCH 1/4] python3Packages.lerobot: unbreak tests on darwin --- pkgs/development/python-modules/lerobot/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/lerobot/default.nix b/pkgs/development/python-modules/lerobot/default.nix index 574c5b2ee905..b90b17e79c14 100644 --- a/pkgs/development/python-modules/lerobot/default.nix +++ b/pkgs/development/python-modules/lerobot/default.nix @@ -34,6 +34,7 @@ wandb, # tests + llvmPackages, pytestCheckHook, writableTmpDirAsHomeHook, pytest-timeout, @@ -58,6 +59,11 @@ buildPythonPackage (finalAttrs: { ]; dontUseCmakeConfigure = true; + checkInputs = lib.optionals stdenv.cc.isClang [ + # test_async_iterator_* hangs after failing to find OMP headers + llvmPackages.openmp + ]; + pythonRelaxDeps = [ "av" "diffusers" From 7607c6b464484985a73d98b70c124201b24bb11e Mon Sep 17 00:00:00 2001 From: Luna Nova Date: Sun, 21 Jun 2026 15:25:38 -0700 Subject: [PATCH 2/4] python3Packages.lerobot: set __darwinAllowLocalNetworking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: GaƩtan Lepage --- pkgs/development/python-modules/lerobot/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/python-modules/lerobot/default.nix b/pkgs/development/python-modules/lerobot/default.nix index b90b17e79c14..0f17e4aae69d 100644 --- a/pkgs/development/python-modules/lerobot/default.nix +++ b/pkgs/development/python-modules/lerobot/default.nix @@ -198,6 +198,8 @@ buildPythonPackage (finalAttrs: { "tests/policies/rtc/test_modeling_rtc.py" ]; + __darwinAllowLocalNetworking = true; + meta = { description = "Making AI for Robotics more accessible with end-to-end learning"; homepage = "https://github.com/huggingface/lerobot"; From 5480c3d5027c3b099f63d3a264a7f607a57fb254 Mon Sep 17 00:00:00 2001 From: Luna Nova Date: Sun, 21 Jun 2026 17:12:30 -0700 Subject: [PATCH 3/4] python3Packages.lerobot: disable flaky test under load --- pkgs/development/python-modules/lerobot/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/lerobot/default.nix b/pkgs/development/python-modules/lerobot/default.nix index 0f17e4aae69d..c393af9379e9 100644 --- a/pkgs/development/python-modules/lerobot/default.nix +++ b/pkgs/development/python-modules/lerobot/default.nix @@ -178,6 +178,9 @@ buildPythonPackage (finalAttrs: { # TypeError: 'NoneType' object is not subscriptable "test_pi0_rtc_inference_with_prev_chunk" + + # Flakes under load with AssertionError: assert 'second' == 'last' + "test_get_last_item_multiple_items_with_torch_queue" ] ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [ # RuntimeError: Failed to initialize cpuinfo! From 6226eebadf3cde854267452a58e3b08e1a659b0d Mon Sep 17 00:00:00 2001 From: Luna Nova Date: Sun, 21 Jun 2026 17:12:54 -0700 Subject: [PATCH 4/4] python3Packages.lerobot: disable tests that fail gRPC conn in darwin sandbox --- pkgs/development/python-modules/lerobot/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/lerobot/default.nix b/pkgs/development/python-modules/lerobot/default.nix index c393af9379e9..ad6b56e46715 100644 --- a/pkgs/development/python-modules/lerobot/default.nix +++ b/pkgs/development/python-modules/lerobot/default.nix @@ -187,6 +187,12 @@ buildPythonPackage (finalAttrs: { "test_complementary_data_float_dtype_conversion" "test_float_dtype_conversion" "test_float_dtype_with_mixed_tensors" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # gRPC fails to connect on loopback in sandbox despite __darwinAllowLocalNetworking + "test_end_to_end_interactions_flow" + "test_end_to_end_parameters_flow" + "test_end_to_end_transitions_flow" ]; disabledTestPaths = [