Something went wrong. Try again.
lol
Something went wrong. Try again.
1.7 kB · 108 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies filelock, fsspec, hf-xet, httpx, packaging, pyyaml, tqdm, typer, typing-extensions,
# optional-dependencies # torch torch, safetensors, # fastai toml, fastai, fastcore, # gradio gradio, requests, # mcp mcp,
# tests versionCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "huggingface-hub"; version = "1.10.2"; pyproject = true;
src = fetchFromGitHub { owner = "huggingface"; repo = "huggingface_hub"; tag = "v${finalAttrs.version}"; hash = "sha256-Q9N0QnxV8oJcxUsJzv4wX8Z6FkNdEfUH5BEVoZolsRY="; };
build-system = [ setuptools ];
dependencies = [ filelock fsspec hf-xet httpx packaging pyyaml tqdm typer typing-extensions ];
optional-dependencies = { all = [
]; torch = [ torch safetensors ] ++ safetensors.optional-dependencies.torch; fastai = [ toml fastai fastcore ]; gradio = [ gradio requests ]; hf_xet = [ hf-xet ]; mcp = [ mcp ]; };
nativeCheckInputs = [ versionCheckHook ]; versionCheckProgramArg = "version";
pythonImportsCheck = [ "huggingface_hub" ];
meta = { description = "Download and publish models and other files on the huggingface.co hub"; mainProgram = "hf"; homepage = "https://github.com/huggingface/huggingface_hub"; changelog = "https://github.com/huggingface/huggingface_hub/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage osbm ]; };})