python313Packages.monai: 1.4.0 -> 1.5.0

Changed files
+7 -3
pkgs
development
python-modules
monai
+7 -3
pkgs/development/python-modules/monai/default.nix
···
buildPythonPackage rec {
pname = "monai";
-
version = "1.4.0";
+
version = "1.5.0";
pyproject = true;
disabled = pythonOlder "3.9";
···
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;
···
torch
];
-
pythonRelaxDeps = [ "numpy" ]; # supported; see https://github.com/Project-MONAI/MONAI/pull/7857
+
pythonRelaxDeps = [ "torch" ];
env.BUILD_MONAI = 1;