python313Packages.monai: 1.4.0 -> 1.5.0

This commit is contained in:
Ben Darwin
2025-06-14 10:27:30 -04:00
parent 8f1d80cf04
commit f463eec5cd
@@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "monai";
version = "1.4.0";
version = "1.5.0";
pyproject = true;
disabled = pythonOlder "3.9";
@@ -22,11 +22,15 @@ buildPythonPackage rec {
owner = "Project-MONAI";
repo = "MONAI";
tag = version;
hash = "sha256-PovYyRLgoYwxqGeCBpWxX/kdClYtYK1bgy8yRa9eue8=";
hash = "sha256-SUZSWChO0oQlLblPwmCg2zt2Jp5QnpM1CXWnMiOiLhw=";
# note: upstream consistently seems to modify the tag shortly after release,
# so best to wait a few days before updating
};
postPatch = ''
substituteInPlace pyproject.toml --replace-fail 'torch>=2.4.1, <2.7.0' 'torch'
'';
preBuild = ''
export MAX_JOBS=$NIX_BUILD_CORES;
'';
@@ -44,7 +48,7 @@ buildPythonPackage rec {
torch
];
pythonRelaxDeps = [ "numpy" ]; # supported; see https://github.com/Project-MONAI/MONAI/pull/7857
pythonRelaxDeps = [ "torch" ];
env.BUILD_MONAI = 1;