Loading pkgs/development/python-modules/monai/default.nix +6 −12 Original line number Diff line number Diff line Loading @@ -13,23 +13,19 @@ buildPythonPackage rec { pname = "monai"; version = "1.5.0"; version = "1.5.1"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "Project-MONAI"; repo = "MONAI"; tag = version; 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' hash = "sha256-GhyUOp/iLpuKKQAwQsA6D7IiW8ym8QTC4OmRxEKydVA="; # fix source non-reproducibility due to versioneer + git-archive, as with Numba, Pytensor etc. derivations: postFetch = '' sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${src.tag})"/' $out/monai/_version.py ''; }; preBuild = '' export MAX_JOBS=$NIX_BUILD_CORES; Loading @@ -48,8 +44,6 @@ buildPythonPackage rec { torch ]; pythonRelaxDeps = [ "torch" ]; env.BUILD_MONAI = 1; doCheck = false; # takes too long; tries to download data Loading Loading
pkgs/development/python-modules/monai/default.nix +6 −12 Original line number Diff line number Diff line Loading @@ -13,23 +13,19 @@ buildPythonPackage rec { pname = "monai"; version = "1.5.0"; version = "1.5.1"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "Project-MONAI"; repo = "MONAI"; tag = version; 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' hash = "sha256-GhyUOp/iLpuKKQAwQsA6D7IiW8ym8QTC4OmRxEKydVA="; # fix source non-reproducibility due to versioneer + git-archive, as with Numba, Pytensor etc. derivations: postFetch = '' sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${src.tag})"/' $out/monai/_version.py ''; }; preBuild = '' export MAX_JOBS=$NIX_BUILD_CORES; Loading @@ -48,8 +44,6 @@ buildPythonPackage rec { torch ]; pythonRelaxDeps = [ "torch" ]; env.BUILD_MONAI = 1; doCheck = false; # takes too long; tries to download data Loading