python3Packages.numba: 0.63.1 -> 0.65.1

https://numba.readthedocs.io/en/stable/release/0.65.1-notes.html
This commit is contained in:
Martin Weinelt 2026-05-17 23:02:04 +02:00
commit 2b81f14fb4

View file

@ -37,7 +37,7 @@ let
cudatoolkit = cudaPackages.cuda_nvcc;
in
buildPythonPackage (finalAttrs: {
version = "0.63.1";
version = "0.65.1";
pname = "numba";
pyproject = true;
@ -53,7 +53,7 @@ buildPythonPackage (finalAttrs: {
postFetch = ''
sed -i 's/git_refnames = "[^"]*"/git_refnames = " (tag: ${finalAttrs.src.tag})"/' $out/numba/_version.py
'';
hash = "sha256-M7Hdc1Qakclz7i/HujBUqVEWFsHj9ZGQDzb8Ze9AztA=";
hash = "sha256-DMmUyTElDFyMK4BUQ4EhDNmG43lOWQHurKbnSyhAs5k=";
};
postPatch = ''
@ -84,25 +84,7 @@ buildPythonPackage (finalAttrs: {
llvmlite
];
patches = [
# Support Numpy 2.4, see:
#
# - https://github.com/numba/numba/pull/10393
# - https://github.com/numba/numba/issues/10263
(fetchpatch {
url = "https://github.com/numba/numba/commit/7ec267efb80d87f0652c00535e8843f35d006f20.patch";
hash = "sha256-oAOZa2/m2qs8CeX13/0lmRTg/lQj5aDIaaQeDeLAghc=";
excludes = [
"azure-pipelines.yml"
"buildscripts/azure/azure-windows.yml"
];
})
# The above doesn't fix the source's build and run time checks of Numpy's
# version, it only fixes the tests and API. Upstream puts these checks only
# in release tarballs, and hence the patch has to be vendored.
./numpy2.4.patch
]
++ lib.optionals cudaSupport [
patches = lib.optionals cudaSupport [
(replaceVars ./cuda_path.patch {
cuda_toolkit_path = cudatoolkit;
cuda_toolkit_lib_path = lib.getLib cudatoolkit;