Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.9 kB · 116 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies filelock, fsspec, hf-xet, packaging, pyyaml, requests, tqdm, typing-extensions,
# optional-dependencies # cli inquirerpy, # inference aiohttp, # torch torch, safetensors, # hf_transfer hf-transfer, # fastai toml, fastai, fastcore, # tensorflow tensorflow, pydot, graphviz, # tensorflow-testing keras,}:
buildPythonPackage rec { pname = "huggingface-hub"; version = "0.34.3"; pyproject = true;
src = fetchFromGitHub { owner = "huggingface"; repo = "huggingface_hub"; tag = "v${version}"; hash = "sha256-rK9Y+hpjk7AOcTPNUcbyqbiEmH6xVG0fy+pUQop422M="; };
build-system = [ setuptools ];
dependencies = [ filelock fsspec hf-xet packaging pyyaml requests tqdm typing-extensions ];
optional-dependencies = { all = [
]; cli = [ inquirerpy ]; inference = [ aiohttp ]; torch = [ torch safetensors ] ++ safetensors.optional-dependencies.torch; hf_transfer = [ hf-transfer ]; fastai = [ toml fastai fastcore ]; tensorflow = [ tensorflow pydot graphviz ]; tensorflow-testing = [ tensorflow keras ]; hf_xet = [ hf-xet ]; };
# Tests require network access. doCheck = false;
pythonImportsCheck = [ "huggingface_hub" ];
meta = { description = "Download and publish models and other files on the huggingface.co hub"; mainProgram = "huggingface-cli"; homepage = "https://github.com/huggingface/huggingface_hub"; changelog = "https://github.com/huggingface/huggingface_hub/releases/tag/v${version}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };}