diff --git a/pkgs/development/python-modules/huggingface-hub/default.nix b/pkgs/development/python-modules/huggingface-hub/default.nix index d5db12bd2d94..9744a7487300 100644 --- a/pkgs/development/python-modules/huggingface-hub/default.nix +++ b/pkgs/development/python-modules/huggingface-hub/default.nix @@ -4,25 +4,32 @@ , pythonOlder , filelock , importlib-metadata +, packaging , requests +, ruamel-yaml , tqdm +, typing-extensions }: buildPythonPackage rec { pname = "huggingface-hub"; - version = "0.0.6"; + version = "0.0.18"; src = fetchFromGitHub { owner = "huggingface"; repo = "huggingface_hub"; rev = "v${version}"; - hash = "sha256-0DSgWmodeRmvGq2v3n86BzRx5Xdb8fIQh+G/2O2d+yo="; + sha256 = "sha256-SxA7rAdKuSrSYFIuxG81lblPJOL69Yx4rBccVrbQa/g="; }; + nativeBuildInputs = [ packaging ]; + propagatedBuildInputs = [ filelock requests + ruamel-yaml tqdm + typing-extensions ] ++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ]; # Tests require network access.