From 69b3f65469642046d2f620cdec4b828d1af35188 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 28 Oct 2025 20:15:52 +0000 Subject: [PATCH] python3Packages.lerobot: 0.3.3 -> 0.4.0 Diff: https://github.com/huggingface/lerobot/compare/v0.3.3...v0.4.0 Changelog: https://github.com/huggingface/lerobot/releases/tag/v0.4.0 --- .../python-modules/lerobot/default.nix | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/lerobot/default.nix b/pkgs/development/python-modules/lerobot/default.nix index c7622536b604..daec5bd39c0b 100644 --- a/pkgs/development/python-modules/lerobot/default.nix +++ b/pkgs/development/python-modules/lerobot/default.nix @@ -8,6 +8,7 @@ setuptools, # dependencies + accelerate, av, datasets, deepdiff, @@ -26,6 +27,7 @@ rerun-sdk, termcolor, torch, + torchcodec, torchvision, wandb, @@ -36,14 +38,14 @@ buildPythonPackage rec { pname = "lerobot"; - version = "0.3.3"; + version = "0.4.0"; pyproject = true; src = fetchFromGitHub { owner = "huggingface"; repo = "lerobot"; tag = "v${version}"; - hash = "sha256-JaspLUuSupmk6QD+mUVLuCSczTNjy0w+nsLBcy7tXnE="; + hash = "sha256-RVe1X0qBPm+okO3Gi/UdkuvuX0m4RlbhIs+NJLlC9wU="; }; # ValueError: mutable default for field value is not allowed: use default_factory @@ -73,7 +75,9 @@ buildPythonPackage rec { ]; dependencies = [ + accelerate av + cmake datasets deepdiff diffusers @@ -91,9 +95,13 @@ buildPythonPackage rec { rerun-sdk termcolor torch + torchcodec torchvision wandb - ]; + ] + ++ imageio.optional-dependencies.ffmpeg + ++ huggingface-hub.optional-dependencies.hf_transfer + ++ huggingface-hub.optional-dependencies.cli; pythonImportsCheck = [ "lerobot" ]; @@ -105,6 +113,7 @@ buildPythonPackage rec { disabledTests = [ # RuntimeError: OpenCVCamera(/build/source/tests/artifacts/cameras/image_480x270.png) read failed "test_async_read" + "test_fourcc_with_camer" "test_read" "test_rotation" @@ -134,6 +143,11 @@ buildPythonPackage rec { "test_cosine_decay_with_warmup_scheduler" "test_diffuser_scheduler" "test_vqbet_scheduler" + + # AssertionError: Regex pattern did not match. + # Regex: "Can't instantiate abstract class NonCallableStep with abstract method __call_" + # Input: "Can't instantiate abstract class NonCallableStep without an implementation for abstract method '__call__'" + "test_construction_rejects_step_without_call" ]; meta = {