From 1c4ffa79948de15f78019a4700ef24632f45a586 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 20 Jul 2025 14:23:43 +0200 Subject: [PATCH] python3Packages.tensorflowWithCuda: move assert to meta.broken `meta.broken` can be caught nicely by CI when running attrpath generation for Eval. `assert` can not and requires ugly workarounds. They both do the same for the user, though. Thus using the former. --- pkgs/development/python-modules/tensorflow/bin.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/tensorflow/bin.nix b/pkgs/development/python-modules/tensorflow/bin.nix index 4057bfea3be7..797c323cab37 100644 --- a/pkgs/development/python-modules/tensorflow/bin.nix +++ b/pkgs/development/python-modules/tensorflow/bin.nix @@ -46,9 +46,6 @@ # - the source build is currently brittle and not easy to maintain # - the source build doesn't work on NVIDIA Jetson platforms -# unsupported combination -assert !(stdenv.hostPlatform.isDarwin && cudaSupport); - let packages = import ./binary-hashes.nix; inherit (cudaPackages) cudatoolkit cudnn; @@ -233,5 +230,7 @@ buildPythonPackage rec { abbradar ]; badPlatforms = [ "x86_64-darwin" ]; + # unsupported combination + broken = stdenv.hostPlatform.isDarwin && cudaSupport; }; }