python3Packages.torch-bin: make disabled more robust (#481697)

This commit is contained in:
dotlambda
2026-02-19 21:58:28 +00:00
committed by GitHub
@@ -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;