diff --git a/pkgs/development/python-modules/huggingface-hub/default.nix b/pkgs/development/python-modules/huggingface-hub/default.nix index 277b3ae4bcf1..52a0ba280cc1 100644 --- a/pkgs/development/python-modules/huggingface-hub/default.nix +++ b/pkgs/development/python-modules/huggingface-hub/default.nix @@ -13,47 +13,36 @@ httpx, packaging, pyyaml, - requests, shellingham, tqdm, typer-slim, 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, + # mcp + mcp, # tests versionCheckHook, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "huggingface-hub"; - version = "1.3.2"; + version = "1.3.3"; pyproject = true; src = fetchFromGitHub { owner = "huggingface"; repo = "huggingface_hub"; - tag = "v${version}"; - hash = "sha256-G7DkWIjFmNyAyNAfOupncIbDbImITl5Av8r0ibTlDMs="; + tag = "v${finalAttrs.version}"; + hash = "sha256-okQ5ZhSb3NcFH68pyhFVYEpphXrc/DHqIFUggjB8tMY="; }; build-system = [ setuptools ]; @@ -65,7 +54,6 @@ buildPythonPackage rec { httpx packaging pyyaml - requests shellingham tqdm typer-slim @@ -75,38 +63,23 @@ buildPythonPackage rec { 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 ]; + mcp = [ + mcp + ]; }; nativeCheckInputs = [ @@ -120,11 +93,11 @@ buildPythonPackage rec { 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/${src.tag}"; + changelog = "https://github.com/huggingface/huggingface_hub/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage osbm ]; }; -} +})