From 2f8ae866d1f0ed9776cd68868da27aabbf535336 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Sun, 19 May 2024 00:26:03 +0300 Subject: [PATCH] python311Packages.xtensor: always build tests --- pkgs/development/python-modules/xtensor-python/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/xtensor-python/default.nix b/pkgs/development/python-modules/xtensor-python/default.nix index f6e34649f5f1..50cbb7446f43 100644 --- a/pkgs/development/python-modules/xtensor-python/default.nix +++ b/pkgs/development/python-modules/xtensor-python/default.nix @@ -31,7 +31,9 @@ toPythonModule (stdenv.mkDerivation(finalAttrs: { ]; doCheck = true; cmakeFlags = [ - "-DBUILD_TESTS=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}" + # Always build the tests, even if not running them, because testing whether + # they can be built is a test in itself. + "-DBUILD_TESTS=ON" ]; propagatedBuildInputs = [