Skip to content

Commit

Permalink
python3Packages.ctranslate2: disable TensorFlow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jul 11, 2024
1 parent aeddd22 commit 8bfb269
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pkgs/development/python-modules/ctranslate2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

# tests
pytestCheckHook,
tensorflow-bin,
torch,
transformers,
wurlitzer,
Expand Down Expand Up @@ -48,7 +47,6 @@ buildPythonPackage rec {

nativeCheckInputs = [
pytestCheckHook
tensorflow-bin
torch
transformers
wurlitzer
Expand All @@ -64,6 +62,16 @@ buildPythonPackage rec {
disabledTests = [
# AssertionError: assert 'int8' in {'float32'}
"test_get_supported_compute_types"
# Tensorflow (tf) not available in Python 3.12 yet
# To remove when https://github.com/NixOS/nixpkgs/pull/325224 is fixed
"test_opennmt_tf_model_conversion"
"test_opennmt_tf_model_quantization"
"test_opennmt_tf_model_conversion_invalid_vocab"
"test_opennmt_tf_model_conversion_invalid_dir"
"test_opennmt_tf_shared_embeddings_conversion"
"test_opennmt_tf_postnorm_transformer_conversion"
"test_opennmt_tf_gpt_conversion"
"test_opennmt_tf_multi_features"
];

disabledTestPaths = [
Expand Down

0 comments on commit 8bfb269

Please sign in to comment.