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

python311Packages.monai: patch out distutils usage
This commit is contained in:
OTABI Tomoya 2024-07-05 18:02:38 +09:00 committed by GitHub
commit 169de9a974
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pythonOlder,
pythonAtLeast,
ninja,
@ -16,8 +17,7 @@ buildPythonPackage rec {
pname = "monai";
version = "1.3.1";
pyproject = true;
# upper bound due to use of `distutils`; remove after next release:
disabled = pythonOlder "3.8" || pythonAtLeast "3.12";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Project-MONAI";
@ -26,6 +26,14 @@ buildPythonPackage rec {
hash = "sha256-YjEJbDM9+PiC3Kse8NA/b/yJBsReaK6yIyEB9uktiEc=";
};
patches = [
(fetchpatch {
name = "remove-distutils";
url = "https://github.com/Project-MONAI/MONAI/commit/87862f0d5730d42d282e779fc1450f18b4869863.patch";
hash = "sha256-wApYfugDPWcuxwmd91peNqc0+l+SoMlT8hhx99oI2Co=";
})
];
preBuild = ''
export MAX_JOBS=$NIX_BUILD_CORES;
'';