Files
nixpkgs/pkgs/development/python-modules/kernels/default.nix
T
Martin Weinelt 47b88de1a5 python3Packages.kernels: 0.7.0 -> 0.9.0
https://github.com/huggingface/kernels/releases/tag/v0.9.0

This commit was automatically generated using update-python-libraries.
2025-08-09 19:00:13 +02:00

41 lines
842 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
huggingface-hub,
setuptools,
}:
buildPythonPackage rec {
pname = "kernels";
version = "0.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "huggingface";
repo = "kernels";
tag = "v${version}";
hash = "sha256-lREccuvahjNV44reYNF8fkJ2o4fMZRB9Ddr9r4HmT2k=";
};
build-system = [
setuptools
];
dependencies = [
huggingface-hub
];
# Tests require pervasive internet access
doCheck = false;
pythonImportsCheck = [ "kernels" ];
meta = {
description = "Load compute kernels from the Huggingface Hub";
homepage = "https://github.com/huggingface/kernels";
changelog = "https://github.com/huggingface/kernels/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ osbm ];
};
}