python3Packages.kernels: init at 0.6.2 (#421304)

This commit is contained in:
Gaétan Lepage 2025-07-02 09:31:53 +02:00 committed by GitHub
commit 2bb232a71a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
huggingface-hub,
setuptools,
}:
buildPythonPackage rec {
pname = "kernels";
version = "0.6.2";
pyproject = true;
src = fetchFromGitHub {
owner = "huggingface";
repo = "kernels";
tag = "v${version}";
hash = "sha256-Akd1gbWcWfxkrhdN6NQ8qRDPRFAPuqy7a3bj2Z+BxF4=";
};
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 ];
};
}

View File

@ -7602,6 +7602,8 @@ self: super: with self; {
kerberos = callPackage ../development/python-modules/kerberos { };
kernels = callPackage ../development/python-modules/kernels { };
kestra = callPackage ../development/python-modules/kestra { };
keyboard = callPackage ../development/python-modules/keyboard { };