mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-03 11:19:53 +00:00
Diff: https://github.com/flashinfer-ai/flashinfer/compare/v0.7.3...v0.7.4 Changelog: https://github.com/flashinfer-ai/flashinfer/releases/tag/v0.7.4
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
config,
|
|
buildPythonPackage,
|
|
flashinfer-python,
|
|
fetchurl,
|
|
}:
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "flashinfer-cubin";
|
|
# FlashInfer ignores a mismatched one. Bumping flashinfer-python changes the URL: update the hash.
|
|
inherit (flashinfer-python) version;
|
|
format = "wheel";
|
|
|
|
# Not on PyPI. Listed on https://flashinfer.ai/whl/flashinfer-cubin/ (1.5 GiB, every architecture)
|
|
src = fetchurl {
|
|
url = "https://github.com/flashinfer-ai/flashinfer/releases/download/v${finalAttrs.version}/flashinfer_cubin-${finalAttrs.version}-py3-none-any.whl";
|
|
hash = "sha256-ivYphvUujNKdHq737MY8RBwcIUvTMXUBmo9UihKLwuI=";
|
|
};
|
|
|
|
pythonImportsCheck = [ "flashinfer_cubin" ];
|
|
|
|
# No tests
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Precompiled cubins for FlashInfer";
|
|
homepage = "https://github.com/flashinfer-ai/flashinfer";
|
|
inherit (flashinfer-python.meta) changelog;
|
|
broken = !config.cudaSupport;
|
|
license = lib.licenses.asl20;
|
|
sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
|
|
teams = [ lib.teams.cuda ];
|
|
maintainers = with lib.maintainers; [ GaetanLepage ];
|
|
};
|
|
})
|