From f32b6fe47a4f7a4f8954c715883103ecef71b8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 19 Jan 2026 09:11:14 -0800 Subject: [PATCH] python3Packages.torch-bin: make disabled more robust --- pkgs/development/python-modules/torch/bin/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/torch/bin/default.nix b/pkgs/development/python-modules/torch/bin/default.nix index c395192d0b30..3e6ae61234aa 100644 --- a/pkgs/development/python-modules/torch/bin/default.nix +++ b/pkgs/development/python-modules/torch/bin/default.nix @@ -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;