python3Packages.torch-bin: make disabled more robust

This commit is contained in:
Robert Schütz
2026-02-19 13:45:44 -08:00
parent 236931b115
commit f32b6fe47a
@@ -3,7 +3,7 @@
stdenv,
python,
buildPythonPackage,
pythonAtLeast,
isPyPy,
fetchurl,
# nativeBuildInputs
@@ -44,7 +44,8 @@ buildPythonPackage {
format = "wheel";
disabled = pythonAtLeast "3.15";
# determine supported interpreters by the ones we have x86_64-linux wheels for
disabled = isPyPy || !(srcs ? "x86_64-linux-${pyVerNoDot}");
src = fetchurl srcs."${stdenv.system}-${pyVerNoDot}" or unsupported;