python3Packages.kernels: init at 0.6.2 (#421304)
This commit is contained in:
commit
2bb232a71a
40
pkgs/development/python-modules/kernels/default.nix
Normal file
40
pkgs/development/python-modules/kernels/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@ -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 { };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user