python3Packages.numba: fix compat with Python 3.13.4 (#419738)

This commit is contained in:
Martin Weinelt
2025-06-25 03:14:47 +02:00
committed by GitHub
@@ -4,6 +4,7 @@
pythonAtLeast,
pythonOlder,
fetchFromGitHub,
fetchpatch2,
python,
buildPythonPackage,
setuptools,
@@ -86,12 +87,20 @@ buildPythonPackage rec {
llvmlite
];
patches = lib.optionals cudaSupport [
(replaceVars ./cuda_path.patch {
cuda_toolkit_path = cudatoolkit;
cuda_toolkit_lib_path = lib.getLib cudatoolkit;
})
];
patches =
[
(fetchpatch2 {
url = "https://github.com/numba/numba/commit/e2c8984ba60295def17e363a926d6f75e7fa9f2d.patch";
includes = [ "numba/core/bytecode.py" ];
hash = "sha256-HIVbp3GSmnq6W7zrRIirIbhGjJsFN3PNyHSfAE8fdDw=";
})
]
++ lib.optionals cudaSupport [
(replaceVars ./cuda_path.patch {
cuda_toolkit_path = cudatoolkit;
cuda_toolkit_lib_path = lib.getLib cudatoolkit;
})
];
nativeCheckInputs = [
pytestCheckHook