Skip to content

python3Packages.flashinfer: 0.6.1 -> 0.6.4#495151

Merged
GaetanLepage merged 13 commits intoNixOS:masterfrom
GaetanLepage:update/python3Packages.flashinfer
Mar 7, 2026
Merged

python3Packages.flashinfer: 0.6.1 -> 0.6.4#495151
GaetanLepage merged 13 commits intoNixOS:masterfrom
GaetanLepage:update/python3Packages.flashinfer

Conversation

@GaetanLepage
Copy link
Contributor

@GaetanLepage GaetanLepage commented Feb 28, 2026

Things done

cc @breakds @daniel-fahey

Fixes #495830

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

@nixpkgs-ci nixpkgs-ci bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. 6.topic: python Python is a high-level, general-purpose programming language. labels Feb 28, 2026
@GaetanLepage GaetanLepage force-pushed the update/python3Packages.flashinfer branch 2 times, most recently from 03f109f to 48d2fb6 Compare February 28, 2026 11:11
@nixpkgs-ci nixpkgs-ci bot requested a review from natsukium February 28, 2026 11:18
@nixpkgs-ci nixpkgs-ci bot added 8.has: package (new) This PR adds a new package 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. and removed 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Feb 28, 2026
@GaetanLepage GaetanLepage force-pushed the update/python3Packages.flashinfer branch from 48d2fb6 to cce7fc7 Compare February 28, 2026 11:31
@GaetanLepage
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 495151
Commit: cce7fc72e027821c841db06f8901f7905ab4649f


x86_64-linux

✅ 12 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python313Packages.cuda-pathfinder
  • python313Packages.cuda-pathfinder.dist
  • python313Packages.cupy
  • python313Packages.cupy.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist
  • python314Packages.cuda-pathfinder
  • python314Packages.cuda-pathfinder.dist
  • python314Packages.cupy
  • python314Packages.cupy.dist

aarch64-linux

✅ 12 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python313Packages.cuda-pathfinder
  • python313Packages.cuda-pathfinder.dist
  • python313Packages.cupy
  • python313Packages.cupy.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist
  • python314Packages.cuda-pathfinder
  • python314Packages.cuda-pathfinder.dist
  • python314Packages.cupy
  • python314Packages.cupy.dist

x86_64-darwin

✅ 4 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist

aarch64-darwin

✅ 4 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist

@GaetanLepage GaetanLepage force-pushed the update/python3Packages.flashinfer branch from cce7fc7 to 6244919 Compare March 3, 2026 23:37
@jaredmontoya
Copy link
Contributor

Probably closes #495830

@GaetanLepage
Copy link
Contributor Author

Probably closes #495830

Indeed.

@GaetanLepage
Copy link
Contributor Author

I'm stuck on pymattings, if someone has an idea to fix the tests, please go on.

@jaredmontoya
Copy link
Contributor

jaredmontoya commented Mar 6, 2026

Similar to pyopencl package:

diff --git a/pkgs/development/python-modules/pymatting/default.nix b/pkgs/development/python-modules/pymatting/default.nix
index 08467bb938a3..2dfd58dcdb3e 100644
--- a/pkgs/development/python-modules/pymatting/default.nix
+++ b/pkgs/development/python-modules/pymatting/default.nix
@@ -16,7 +16,9 @@
   pyopencl,
 
   # tests
+  pocl,
   pytestCheckHook,
+  writableTmpDirAsHomeHook,
 
   config,
   cudaSupport ? config.cudaSupport,
@@ -47,15 +49,18 @@ buildPythonPackage (finalAttrs: {
     pyopencl
   ];
 
-  # Fails in the sandbox when cudaSupport is enabled:
-  # pyopencl._cl.RuntimeError: no CL platforms available to ICD loader.
-  # Install a CL driver ('ICD', such as pocl, rocm, Intel CL) to fix this.
-  # See pyopencl docs for help: https://documen.tician.de/pyopencl/misc.html#installation
-  pythonImportsCheck = lib.optionals (!cudaSupport) [
-    "pymatting"
-  ];
+  pythonImportsCheck = [ "pymatting" ];
 
-  nativeCheckInputs = [ pytestCheckHook ];
+  nativeCheckInputs = [
+    pytestCheckHook
+  ]
+  ++ lib.optionals cudaSupport [
+    # Provides a CPU-based OpenCL ICD so that pyopencl's module-level
+    # cl.create_some_context() succeeds without GPU hardware.
+    pocl
+    # pocl needs a writable $HOME for its kernel cache directory.
+    writableTmpDirAsHomeHook
+  ];
 
   disabledTests = [
     # no access to input data set
@@ -67,7 +72,7 @@ buildPythonPackage (finalAttrs: {
   ];
 
   disabledTestPaths = lib.optionals cudaSupport [
-    # pyopencl._cl.LogicError: clGetPlatformIDs failed: PLATFORM_NOT_FOUND_KHR
+    # Requires a CUDA driver for cupy GPU operations.
     "tests/test_foreground.py"
   ];

@GaetanLepage GaetanLepage force-pushed the update/python3Packages.flashinfer branch from 6244919 to 2fe6948 Compare March 6, 2026 18:19
@GaetanLepage
Copy link
Contributor Author

Similar to pyopencl package:

Nice, thanks a lot!

@GaetanLepage GaetanLepage force-pushed the update/python3Packages.flashinfer branch from 2fe6948 to b70b3ee Compare March 6, 2026 20:52
@jaredmontoya
Copy link
Contributor

The treefmt check failed, please run nix fmt

@GaetanLepage GaetanLepage force-pushed the update/python3Packages.flashinfer branch from b70b3ee to e3d21ee Compare March 6, 2026 23:05
@GaetanLepage
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 495151
Commit: e3d21ee4d07ae66916c1e6b7c18ad783aa6c580d


x86_64-linux

✅ 12 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python313Packages.cuda-pathfinder
  • python313Packages.cuda-pathfinder.dist
  • python313Packages.cupy
  • python313Packages.cupy.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist
  • python314Packages.cuda-pathfinder
  • python314Packages.cuda-pathfinder.dist
  • python314Packages.cupy
  • python314Packages.cupy.dist

aarch64-linux

✅ 12 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python313Packages.cuda-pathfinder
  • python313Packages.cuda-pathfinder.dist
  • python313Packages.cupy
  • python313Packages.cupy.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist
  • python314Packages.cuda-pathfinder
  • python314Packages.cuda-pathfinder.dist
  • python314Packages.cupy
  • python314Packages.cupy.dist

x86_64-darwin

✅ 4 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist

aarch64-darwin

✅ 4 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist

@GaetanLepage GaetanLepage force-pushed the update/python3Packages.flashinfer branch 2 times, most recently from 41ed897 to 260fc6a Compare March 7, 2026 00:01
@nixpkgs-ci nixpkgs-ci bot requested a review from Mic92 March 7, 2026 00:07
@GaetanLepage GaetanLepage force-pushed the update/python3Packages.flashinfer branch 2 times, most recently from da1bf10 to 5e6cb90 Compare March 7, 2026 01:13
@GaetanLepage
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 495151
Commit: 5e6cb903790a2df47e0ea6f11a691da6cda6eb5d


x86_64-linux

✅ 42 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python313Packages.cuda-pathfinder
  • python313Packages.cuda-pathfinder.dist
  • python313Packages.cupy
  • python313Packages.cupy.dist
  • python313Packages.fast-array-utils
  • python313Packages.fast-array-utils.dist
  • python313Packages.hatch-min-requirements
  • python313Packages.hatch-min-requirements.dist
  • python313Packages.kmapper
  • python313Packages.kmapper.dist
  • python313Packages.pynndescent
  • python313Packages.pynndescent.dist
  • python313Packages.scanpy
  • python313Packages.scanpy.dist
  • python313Packages.scikit-tda
  • python313Packages.scikit-tda.dist
  • python313Packages.skrl
  • python313Packages.skrl.dist
  • python313Packages.umap-learn
  • python313Packages.umap-learn.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist
  • python314Packages.cuda-pathfinder
  • python314Packages.cuda-pathfinder.dist
  • python314Packages.cupy
  • python314Packages.cupy.dist
  • python314Packages.fast-array-utils
  • python314Packages.fast-array-utils.dist
  • python314Packages.hatch-min-requirements
  • python314Packages.hatch-min-requirements.dist
  • python314Packages.kmapper
  • python314Packages.kmapper.dist
  • python314Packages.pynndescent
  • python314Packages.pynndescent.dist
  • python314Packages.scanpy
  • python314Packages.scanpy.dist
  • python314Packages.scikit-tda
  • python314Packages.scikit-tda.dist
  • python314Packages.umap-learn
  • python314Packages.umap-learn.dist

aarch64-linux

✅ 26 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python313Packages.cuda-pathfinder
  • python313Packages.cuda-pathfinder.dist
  • python313Packages.cupy
  • python313Packages.cupy.dist
  • python313Packages.fast-array-utils
  • python313Packages.fast-array-utils.dist
  • python313Packages.hatch-min-requirements
  • python313Packages.hatch-min-requirements.dist
  • python313Packages.kmapper
  • python313Packages.kmapper.dist
  • python313Packages.skrl
  • python313Packages.skrl.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist
  • python314Packages.cuda-pathfinder
  • python314Packages.cuda-pathfinder.dist
  • python314Packages.cupy
  • python314Packages.cupy.dist
  • python314Packages.fast-array-utils
  • python314Packages.fast-array-utils.dist
  • python314Packages.hatch-min-requirements
  • python314Packages.hatch-min-requirements.dist
  • python314Packages.kmapper
  • python314Packages.kmapper.dist

x86_64-darwin

✅ 28 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python313Packages.fast-array-utils
  • python313Packages.fast-array-utils.dist
  • python313Packages.hatch-min-requirements
  • python313Packages.hatch-min-requirements.dist
  • python313Packages.kmapper
  • python313Packages.kmapper.dist
  • python313Packages.pynndescent
  • python313Packages.pynndescent.dist
  • python313Packages.scikit-tda
  • python313Packages.scikit-tda.dist
  • python313Packages.umap-learn
  • python313Packages.umap-learn.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist
  • python314Packages.fast-array-utils
  • python314Packages.fast-array-utils.dist
  • python314Packages.hatch-min-requirements
  • python314Packages.hatch-min-requirements.dist
  • python314Packages.kmapper
  • python314Packages.kmapper.dist
  • python314Packages.pynndescent
  • python314Packages.pynndescent.dist
  • python314Packages.scikit-tda
  • python314Packages.scikit-tda.dist
  • python314Packages.umap-learn
  • python314Packages.umap-learn.dist

aarch64-darwin

✅ 28 packages built:
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python313Packages.fast-array-utils
  • python313Packages.fast-array-utils.dist
  • python313Packages.hatch-min-requirements
  • python313Packages.hatch-min-requirements.dist
  • python313Packages.kmapper
  • python313Packages.kmapper.dist
  • python313Packages.pynndescent
  • python313Packages.pynndescent.dist
  • python313Packages.scikit-tda
  • python313Packages.scikit-tda.dist
  • python313Packages.umap-learn
  • python313Packages.umap-learn.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist
  • python314Packages.fast-array-utils
  • python314Packages.fast-array-utils.dist
  • python314Packages.hatch-min-requirements
  • python314Packages.hatch-min-requirements.dist
  • python314Packages.kmapper
  • python314Packages.kmapper.dist
  • python314Packages.pynndescent
  • python314Packages.pynndescent.dist
  • python314Packages.scikit-tda
  • python314Packages.scikit-tda.dist
  • python314Packages.umap-learn
  • python314Packages.umap-learn.dist

@GaetanLepage
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 495151 --extra-nixpkgs-config '{ allowUnfree = true; cudaSupport = true; }'
Commit: 5e6cb903790a2df47e0ea6f11a691da6cda6eb5d


x86_64-linux

⏩ 2 packages marked as broken and skipped:
  • tebreak
  • tebreak.dist
✅ 96 packages built:
  • alpaca
  • backgroundremover
  • backgroundremover.dist
  • minari (python313Packages.minari)
  • minari.dist (python313Packages.minari.dist)
  • nixpkgs-manual
  • python313Packages.ale-py
  • python313Packages.ale-py.dist
  • python313Packages.anndata
  • python313Packages.anndata.dist
  • python313Packages.apache-tvm-ffi
  • python313Packages.apache-tvm-ffi.dist
  • python313Packages.array-api-compat
  • python313Packages.array-api-compat.dist
  • python313Packages.cuda-pathfinder
  • python313Packages.cuda-pathfinder.dist
  • python313Packages.cupy
  • python313Packages.cupy.dist
  • python313Packages.fast-array-utils
  • python313Packages.fast-array-utils.dist
  • python313Packages.flashinfer
  • python313Packages.flashinfer.dist
  • python313Packages.gymnasium
  • python313Packages.gymnasium.dist
  • python313Packages.hatch-min-requirements
  • python313Packages.hatch-min-requirements.dist
  • python313Packages.kmapper
  • python313Packages.kmapper.dist
  • python313Packages.kserve
  • python313Packages.kserve.dist
  • python313Packages.lerobot
  • python313Packages.lerobot.dist
  • python313Packages.pettingzoo
  • python313Packages.pettingzoo.dist
  • python313Packages.pymatting
  • python313Packages.pymatting.dist
  • python313Packages.pynndescent
  • python313Packages.pynndescent.dist
  • python313Packages.rembg
  • python313Packages.rembg.dist
  • python313Packages.scanpy
  • python313Packages.scanpy.dist
  • python313Packages.scikit-bio
  • python313Packages.scikit-bio.dist
  • python313Packages.scikit-tda
  • python313Packages.scikit-tda.dist
  • python313Packages.shimmy
  • python313Packages.shimmy.dist
  • python313Packages.skrl
  • python313Packages.skrl.dist
  • python313Packages.stable-baselines3
  • python313Packages.stable-baselines3.dist
  • python313Packages.tianshou
  • python313Packages.tianshou.dist
  • python313Packages.torchrl
  • python313Packages.torchrl.dist
  • python313Packages.umap-learn
  • python313Packages.umap-learn.dist
  • vllm (python313Packages.vllm)
  • vllm.dist (python313Packages.vllm.dist)
  • python313Packages.vmas
  • python313Packages.vmas.dist
  • python314Packages.anndata
  • python314Packages.anndata.dist
  • python314Packages.apache-tvm-ffi
  • python314Packages.apache-tvm-ffi.dist
  • python314Packages.array-api-compat
  • python314Packages.array-api-compat.dist
  • python314Packages.cuda-pathfinder
  • python314Packages.cuda-pathfinder.dist
  • python314Packages.cupy
  • python314Packages.cupy.dist
  • python314Packages.fast-array-utils
  • python314Packages.fast-array-utils.dist
  • python314Packages.flashinfer
  • python314Packages.flashinfer.dist
  • python314Packages.hatch-min-requirements
  • python314Packages.hatch-min-requirements.dist
  • python314Packages.kmapper
  • python314Packages.kmapper.dist
  • python314Packages.pymatting
  • python314Packages.pymatting.dist
  • python314Packages.pynndescent
  • python314Packages.pynndescent.dist
  • python314Packages.rembg
  • python314Packages.rembg.dist
  • python314Packages.scanpy
  • python314Packages.scanpy.dist
  • python314Packages.scikit-bio
  • python314Packages.scikit-bio.dist
  • python314Packages.scikit-tda
  • python314Packages.scikit-tda.dist
  • python314Packages.umap-learn
  • python314Packages.umap-learn.dist
  • rembg
  • rembg.dist

@GaetanLepage GaetanLepage marked this pull request as ready for review March 7, 2026 09:56
@GaetanLepage GaetanLepage requested a review from kirillrdy March 7, 2026 09:56
@GaetanLepage GaetanLepage force-pushed the update/python3Packages.flashinfer branch from 5e6cb90 to 68ff98f Compare March 7, 2026 13:51
@GaetanLepage GaetanLepage requested a review from samuela March 7, 2026 13:55
description = "one-stop solution for locating CUDA components";
homepage = "https://github.com/NVIDIA/cuda-python/tree/main/cuda_pathfinder";
changelog = "https://nvidia.github.io/cuda-python/cuda-pathfinder/${finalAttrs.version}/release/${finalAttrs.version}-notes.html";
license = lib.licenses.unfreeRedistributable; # NVIDIA Proprietary Software
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there one in lib.licenses for NVIDIA specifically that would work with

allowUnfreeCudaPredicate =
?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Switched to asl20.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Mar 7, 2026
@GaetanLepage GaetanLepage force-pushed the update/python3Packages.flashinfer branch from 68ff98f to 8ad1990 Compare March 7, 2026 20:06
@GaetanLepage GaetanLepage added this pull request to the merge queue Mar 7, 2026
Merged via the queue into NixOS:master with commit 205ef08 Mar 7, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (new) This PR adds a new package 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build failure: python313Packages.cupy

4 participants