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"