From 4094484e743315f60ceface02add7fbc77906dc4 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 18 Mar 2025 11:08:30 +0100 Subject: [PATCH] python313Packages.pytorch-pfn-extras: disable failing test on python 3.13 --- .../python-modules/pytorch-pfn-extras/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pytorch-pfn-extras/default.nix b/pkgs/development/python-modules/pytorch-pfn-extras/default.nix index 33a4db6a81b1..2c63c289766e 100644 --- a/pkgs/development/python-modules/pytorch-pfn-extras/default.nix +++ b/pkgs/development/python-modules/pytorch-pfn-extras/default.nix @@ -17,6 +17,7 @@ onnx, pytestCheckHook, torchvision, + pythonAtLeast, }: buildPythonPackage rec { @@ -60,7 +61,11 @@ buildPythonPackage rec { # where 4 = .call_count "test_lr_scheduler_wait_for_first_optimizer_step" ] - ++ lib.optionals (stdenv.hostPlatform.isDarwin) [ + ++ lib.optionals (pythonAtLeast "3.13") [ + # RuntimeError: Dynamo is not supported on Python 3.13+ + "test_register" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ # torch.distributed is not available on darwin "test_create_distributed_evaluator" "test_distributed_evaluation"