Skip to content

Commit

Permalink
python3Packages.apricot-select: disable certain tests when built with…
Browse files Browse the repository at this point in the history
… cuda support

These tests fail when using dependencies built with CUDA support.
  • Loading branch information
ConnorBaker committed May 25, 2024
1 parent b28f7c5 commit a0d13a9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/development/python-modules/apricot-select/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
config,
lib,
buildPythonPackage,
fetchFromGitHub,
Expand Down Expand Up @@ -56,6 +57,16 @@ buildPythonPackage rec {
"tests/test_optimizers/test_knapsack_feature_based.py"
];

# NOTE: These tests fail when dependencies are built with CUDA support.
disabledTests = lib.optionals config.cudaSupport [
"test_digits_modular"
"test_digits_modular_object"
"test_digits_modular_sparse"
"test_digits_sqrt_modular"
"test_digits_sqrt_modular_object"
"test_digits_sqrt_modular_sparse"
];

meta = with lib; {
description = "Module for submodular optimization for the purpose of selecting subsets of massive data sets";
homepage = "https://github.com/jmschrei/apricot";
Expand Down

0 comments on commit a0d13a9

Please sign in to comment.