From 1d34e6827d3350c351bbb1d24aeaf4235dc5ddf7 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 21 May 2025 18:04:29 +0200 Subject: [PATCH] python312Packages.ctranslate2: skip crashing test on darwin --- pkgs/development/python-modules/ctranslate2/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/ctranslate2/default.nix b/pkgs/development/python-modules/ctranslate2/default.nix index 210d7aaacf02..d1a56041f07b 100644 --- a/pkgs/development/python-modules/ctranslate2/default.nix +++ b/pkgs/development/python-modules/ctranslate2/default.nix @@ -1,5 +1,6 @@ { lib, + stdenv, buildPythonPackage, # build-system @@ -59,6 +60,11 @@ buildPythonPackage rec { export HOME=$TMPDIR ''; + disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ + # Fatal Python error: Aborted + "test_invalid_model_path" + ]; + disabledTestPaths = [ # TODO: ModuleNotFoundError: No module named 'opennmt' "tests/test_opennmt_tf.py"