python3Packages.torchmd-net: allow test to run without MPS support on darwin

This commit is contained in:
Gaetan Lepage
2026-07-03 21:38:56 +00:00
parent 219b236583
commit 6507a11a46
@@ -42,6 +42,13 @@ buildPythonPackage (finalAttrs: {
setuptools-scm
];
env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
# NotImplementedError: The operator 'torchmdnet::warp_neighbor_brute_fwd' is not currently implemented for the MPS device.
# As a temporary fix, you can set the environment variable `PYTORCH_ENABLE_MPS_FALLBACK=1` to use the CPU as a fallback for this op.
# WARNING: this will be slower than running natively on MPS.
PYTORCH_ENABLE_MPS_FALLBACK = true;
};
pythonRemoveDeps = [
# Not a runtime dependency
"setuptools"