python310Packages.numba 0 -> 1 attrpath: python310Packages.numba Checking auto update branch... [version] [version] generic version rewriter does not support multiple hashes [rustCrateVersion] [rustCrateVersion] No cargoSha256 or cargoHash found [golangModuleVersion] [golangModuleVersion] Not a buildGoModule package with vendorSha256 or vendorHash [updateScript] [updateScript] Success [updateScript] this derivation will be built: /nix/store/ckgfx1nvijfrf5ck7alril2p59lr1zfs-packages.json.drv building '/nix/store/ckgfx1nvijfrf5ck7alril2p59lr1zfs-packages.json.drv'... Going to be running update for following packages: - python3.10-numba-0.56.4 Press Enter key to continue... Running update for: - python3.10-numba-0.56.4: UPDATING ... - python3.10-numba-0.56.4: DONE. Packages updated! [quotedUrls] [quotedUrls] nothing found to replace Diff after rewrites: diff --git a/pkgs/development/python-modules/numba/default.nix b/pkgs/development/python-modules/numba/default.nix index d503307ce67..45cc2bcb9bd 100644 --- a/pkgs/development/python-modules/numba/default.nix +++ b/pkgs/development/python-modules/numba/default.nix @@ -27,14 +27,14 @@ let inherit (cudaPackages) cudatoolkit; in buildPythonPackage rec { - version = "0.56.4"; + version = "0.57.1"; pname = "numba"; format = "setuptools"; disabled = pythonOlder "3.6" || pythonAtLeast "3.11"; src = fetchPypi { inherit pname version; - hash = "sha256-Mtn+9BLIFIPX7+DOts9NMxD96LYkqc7MoA95BXOslu4="; + hash = "sha256-M8BQAXDSE+ZtkFWK1qylfT4D6XuxHagubYereTZIyxc="; }; postPatch = '' No auto update branch exists Old version 0.56.4" not present in staging-next derivation file with contents: { lib , stdenv , pythonAtLeast , pythonOlder , fetchFromGitHub , python , buildPythonPackage , setuptools , numpy , llvmlite , libcxx , importlib-metadata , substituteAll , runCommand , fetchpatch , config # CUDA-only dependencies: , addOpenGLRunpath ? null , cudaPackages ? {} # CUDA flags: , cudaSupport ? config.cudaSupport }: let inherit (cudaPackages) cudatoolkit; in buildPythonPackage rec { # Using an untagged version, with numpy 1.25 support version = "unstable-2023-08-02"; pname = "numba"; format = "setuptools"; disabled = pythonOlder "3.6" || pythonAtLeast "3.11"; src = fetchFromGitHub { owner = "numba"; repo = "numba"; rev = "fcf94205335dcc6135d2e19c07bbef968d13610d"; hash = "sha256-9YmIX+ydDA7xcPqjDus1LSrAhsgv6eVpKLZVzX8Cv0w="; }; env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; nativeBuildInputs = [ numpy ] ++ lib.optionals cudaSupport [ addOpenGLRunpath ]; propagatedBuildInputs = [ numpy llvmlite setuptools ] ++ lib.optionals (pythonOlder "3.9") [ importlib-metadata ] ++ lib.optionals cudaSupport [ cudatoolkit cudatoolkit.lib ]; patches = lib.optionals cudaSupport [ (substituteAll { src = ./cuda_path.patch; cuda_toolkit_path = cudatoolkit; cuda_toolkit_lib_path = cudatoolkit.lib; }) ]; postFixup = lib.optionalString cudaSupport '' find $out -type f \( -name '*.so' -or -name '*.so.*' \) | while read lib; do addOpenGLRunpath "$lib" patchelf --set-rpath "${cudatoolkit}/lib:${cudatoolkit.lib}/lib:$(patchelf --print-rpath "$lib")" "$lib" done ''; # run a smoke test in a temporary directory so that # a) Python picks up the installed library in $out instead of the build files # b) we have somewhere to put $HOME so some caching tests work # c) it doesn't take 6 CPU hours for the full suite checkPhase = '' runHook preCheck pushd $(mktemp -d) HOME=. ${python.interpreter} -m numba.runtests -m $NIX_BUILD_CORES numba.tests.test_usecases popd runHook postCheck ''; pythonImportsCheck = [ "numba" ]; passthru.tests = { # CONTRIBUTOR NOTE: numba also contains CUDA tests, though these cannot be run in # this sandbox environment. Consider running similar commands to those below outside the # sandbox manually if you have the appropriate hardware; support will be detected # and the corresponding tests enabled automatically. # Also, the full suite currently does not complete on anything but x86_64-linux. fullSuite = runCommand "${pname}-test" {} '' pushd $(mktemp -d) # pip and python in $PATH is needed for the test suite to pass fully PATH=${python.withPackages (p: [ p.numba p.pip ])}/bin:$PATH HOME=$PWD python -m numba.runtests -m $NIX_BUILD_CORES popd touch $out # stop Nix from complaining no output was generated and failing the build ''; }; meta = with lib; { description = "Compiling Python code using LLVM"; homepage = "https://numba.pydata.org/"; license = licenses.bsd2; maintainers = with maintainers; [ fridh ]; }; }