python3Packages.flashinfer: switch pynvml to nvidia-ml-py

- Backports the upstream commit as a patch
- Eliminates `FutureWarning` about deprecated `pynvml` package
- Adds me (Daniel Fahey) as a maintainer
This commit is contained in:
Daniel Fahey
2025-11-12 11:41:23 +00:00
parent 7c9dec453c
commit daaf408d76
@@ -9,6 +9,7 @@
config,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
# build-system
setuptools,
@@ -22,7 +23,7 @@
click,
einops,
numpy,
pynvml,
nvidia-ml-py,
tabulate,
torch,
tqdm,
@@ -41,6 +42,15 @@ buildPythonPackage rec {
hash = "sha256-e9PfLfU0DdoLKlXiHylCbGd125c7Iw9y4NDIOAP0xHs=";
};
patches = [
# TODO: remove patch with update to v0.5.2+
# Switch pynvml to nvidia-ml-py
(fetchpatch2 {
url = "https://github.com/flashinfer-ai/flashinfer/commit/a42f99255d68d1a54b689bd4985339c6b44963a6.patch?full_index=1";
hash = "sha256-3XJFcdQeZ/c5fwiQvd95z4p9BzTn8pjle21WzeBxUgk=";
})
];
build-system = [ setuptools ];
nativeBuildInputs = [
@@ -86,7 +96,7 @@ buildPythonPackage rec {
click
einops
numpy
pynvml
nvidia-ml-py
tabulate
torch
tqdm
@@ -104,6 +114,9 @@ buildPythonPackage rec {
scenarios.
'';
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ breakds ];
maintainers = with lib.maintainers; [
breakds
daniel-fahey
];
};
}