Merge pull request #324469 from bcdarwin/monai-python-3.12

python311Packages.monai: patch out distutils usage

authored by OTABI Tomoya and committed by GitHub 169de9a9 c5417593

+10 -2
+10 -2
pkgs/development/python-modules/monai/default.nix
··· 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 pythonAtLeast, 7 ninja, ··· 16 pname = "monai"; 17 version = "1.3.1"; 18 pyproject = true; 19 - # upper bound due to use of `distutils`; remove after next release: 20 - disabled = pythonOlder "3.8" || pythonAtLeast "3.12"; 21 22 src = fetchFromGitHub { 23 owner = "Project-MONAI"; ··· 25 rev = "refs/tags/${version}"; 26 hash = "sha256-YjEJbDM9+PiC3Kse8NA/b/yJBsReaK6yIyEB9uktiEc="; 27 }; 28 29 preBuild = '' 30 export MAX_JOBS=$NIX_BUILD_CORES;
··· 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 + fetchpatch, 6 pythonOlder, 7 pythonAtLeast, 8 ninja, ··· 17 pname = "monai"; 18 version = "1.3.1"; 19 pyproject = true; 20 + disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "Project-MONAI"; ··· 25 rev = "refs/tags/${version}"; 26 hash = "sha256-YjEJbDM9+PiC3Kse8NA/b/yJBsReaK6yIyEB9uktiEc="; 27 }; 28 + 29 + patches = [ 30 + (fetchpatch { 31 + name = "remove-distutils"; 32 + url = "https://github.com/Project-MONAI/MONAI/commit/87862f0d5730d42d282e779fc1450f18b4869863.patch"; 33 + hash = "sha256-wApYfugDPWcuxwmd91peNqc0+l+SoMlT8hhx99oI2Co="; 34 + }) 35 + ]; 36 37 preBuild = '' 38 export MAX_JOBS=$NIX_BUILD_CORES;