Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
842 B · 40 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041{ lib, buildPythonPackage, fetchFromGitHub, huggingface-hub, setuptools,}:buildPythonPackage rec { pname = "kernels"; version = "0.7.0"; pyproject = true;
src = fetchFromGitHub { owner = "huggingface"; repo = "kernels"; tag = "v${version}"; hash = "sha256-IbOadtnuRgN54Sg+mFULkkqi6LVlW+ohBgtemz/Pxxc="; };
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 ]; };}