lol

python313Packages.accelerate: disable unsupported tests

and finally migrate to pytest 8.

+6 -5
+6 -5
pkgs/development/python-modules/accelerate/default.nix
··· 23 23 # tests 24 24 evaluate, 25 25 parameterized, 26 - pytest7CheckHook, 26 + pytestCheckHook, 27 27 transformers, 28 28 config, 29 29 cudatoolkit, ··· 58 58 nativeCheckInputs = [ 59 59 evaluate 60 60 parameterized 61 - pytest7CheckHook 61 + pytestCheckHook 62 62 transformers 63 63 ]; 64 64 preCheck = ··· 92 92 # set the environment variable, CC, which conflicts with standard environment 93 93 "test_patch_environment_key_exists" 94 94 ] 95 - ++ lib.optionals (pythonAtLeast "3.12") [ 96 - # RuntimeError: Dynamo is not supported on Python 3.12+ 95 + ++ lib.optionals (pythonAtLeast "3.13") [ 96 + # RuntimeError: Dynamo is not supported on Python 3.13+ 97 + "test_can_unwrap_distributed_compiled_model_keep_torch_compile" 98 + "test_can_unwrap_distributed_compiled_model_remove_torch_compile" 97 99 "test_convert_to_fp32" 98 - "test_dynamo_extract_model" 99 100 "test_send_to_device_compiles" 100 101 ] 101 102 ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [