gnu: python-huggingface-hub: Update to 0.31.4.

* gnu/packages/python-web.scm (python-huggingface-hub): Update to 0.31.4.
[native-inputs]: Add python-pytest-mock.
[home-page]: Update.
[arguments]<#:test-flags>: Disable more tests.

Change-Id: Ia1354fca9ba4d1a8906a11873c469a4f4b024efe
Signed-off-by: Andreas Enge <andreas@enge.fr>
This commit is contained in:
Cayetano Santos 2025-08-06 14:52:39 +02:00 committed by Andreas Enge
parent c676feed86
commit 548dbaf3d7
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -835,7 +835,7 @@ of a fake DNS resolver.")
(define-public python-huggingface-hub (define-public python-huggingface-hub
(package (package
(name "python-huggingface-hub") (name "python-huggingface-hub")
(version "0.23.2") (version "0.31.4")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -844,7 +844,7 @@ of a fake DNS resolver.")
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "0hygxqcixkc1d9sr47j2km6z0p17aj4k1dzm4cvpddrvhrgqayq5")))) (base32 "1rjkrmvvyzxlbnbndrg4v9qq39grn46c26zrdjgpf114gci5pwap"))))
(build-system pyproject-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
@ -881,7 +881,13 @@ of a fake DNS resolver.")
"-k" (string-append "-k" (string-append
"not test_push_to_hub" "not test_push_to_hub"
" and not test_from_pretrained_model_id_only" " and not test_from_pretrained_model_id_only"
" and not test_from_pretrained_model_id_and_revision")) " and not test_from_pretrained_model_id_and_revision"
;; These all require internet access
" and not test_auth"
" and not test_oauth"
" and not test_utils_sha"
" and not test_inference_providers"
" and not test_xet"))
#:phases #:phases
'(modify-phases %standard-phases '(modify-phases %standard-phases
(add-before 'check 'pre-check (add-before 'check 'pre-check
@ -908,6 +914,7 @@ of a fake DNS resolver.")
python-pytest-asyncio python-pytest-asyncio
python-pytest-cov python-pytest-cov
python-pytest-env python-pytest-env
python-pytest-mock
python-pytest-rerunfailures python-pytest-rerunfailures
python-pytest-vcr python-pytest-vcr
python-pytest-xdist python-pytest-xdist
@ -918,7 +925,7 @@ of a fake DNS resolver.")
python-typing-extensions python-typing-extensions
python-urllib3 python-urllib3
python-wheel)) python-wheel))
(home-page "https://github.com/huggingface/huggingface_hub") (home-page "https://huggingface.co/docs/huggingface_hub/")
(synopsis "Client library for accessing the huggingface.co hub") (synopsis "Client library for accessing the huggingface.co hub")
(description (description
"This package provides a client library to download and publish models, "This package provides a client library to download and publish models,