From 2b81f14fb44b825dbf2ef44e0da0842b823b3c78 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 17 May 2026 23:02:04 +0200 Subject: [PATCH] python3Packages.numba: 0.63.1 -> 0.65.1 https://numba.readthedocs.io/en/stable/release/0.65.1-notes.html --- .../python-modules/numba/default.nix | 24 +++---------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/pkgs/development/python-modules/numba/default.nix b/pkgs/development/python-modules/numba/default.nix index 506f0e10dfd6..0e38f0392cde 100644 --- a/pkgs/development/python-modules/numba/default.nix +++ b/pkgs/development/python-modules/numba/default.nix @@ -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;