From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 73106@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#73106] [PATCH 05/10] gnu: Add rust-hf-hub-0.3.
Date: Sat, 7 Sep 2024 18:56:11 +0200 [thread overview]
Message-ID: <20240907165626.22651-5-ngraves@ngraves.fr> (raw)
In-Reply-To: <20240907165626.22651-1-ngraves@ngraves.fr>
* gnu/packages/machine-learning.scm (rust-hf-hub-0.3): New variable.
Change-Id: I9e64c316dde8094e6142785af8549556953513e0
---
gnu/packages/machine-learning.scm | 48 +++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index d3f76ebeba..27d7f0526b 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -78,7 +78,10 @@ (define-module (gnu packages machine-learning)
#:use-module (gnu packages cmake)
#:use-module (gnu packages cpp)
#:use-module (gnu packages cran)
+ #:use-module (gnu packages crates-crypto)
#:use-module (gnu packages crates-io)
+ #:use-module (gnu packages crates-tls)
+ #:use-module (gnu packages crates-web)
#:use-module (gnu packages databases)
#:use-module (gnu packages dejagnu)
#:use-module (gnu packages documentation)
@@ -5627,6 +5630,51 @@ (define-public rust-spm-precompiled-0.1
specialized and not intended for general use.")
(license license:asl2.0)))
+(define-public rust-hf-hub-0.3
+ (package
+ (name "rust-hf-hub")
+ (version "0.3.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "hf-hub" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0cnpivy9fn62lm1fw85kmg3ryvrx8drq63c96vq94gabawshcy1b"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ; require network connection
+ #:cargo-inputs
+ (("rust-dirs" ,rust-dirs-5)
+ ("rust-futures" ,rust-futures-0.3)
+ ("rust-indicatif" ,rust-indicatif-0.17)
+ ("rust-log" ,rust-log-0.4)
+ ("rust-native-tls" ,rust-native-tls-0.2)
+ ("rust-num-cpus" ,rust-num-cpus-1)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-reqwest" ,rust-reqwest-0.11)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-serde-json" ,rust-serde-json-1)
+ ("rust-thiserror" ,rust-thiserror-1)
+ ("rust-tokio" ,rust-tokio-1)
+ ("rust-ureq" ,rust-ureq-2))
+ #:cargo-development-inputs
+ (("rust-hex-literal" ,rust-hex-literal-0.4)
+ ("rust-sha2" ,rust-sha2-0.10)
+ ("rust-tokio-test" ,rust-tokio-test-0.4))))
+ (native-inputs
+ (list pkg-config))
+ (inputs
+ (list openssl))
+ (home-page "https://github.com/huggingface/hf-hub")
+ (synopsis "Interact with HuggingFace in Rust")
+ (description
+ "This crates aims ease the interaction with
+@url{https://huggingface.co/,huggingface}. It aims to be compatible with
+@url{https://github.com/huggingface/huggingface_hub/,huggingface_hub}
+python package, but only implements a smaller subset of functions.")
+ (license license:asl2.0)))
+
(define-public python-hmmlearn
(package
(name "python-hmmlearn")
--
2.45.2
next prev parent reply other threads:[~2024-09-07 16:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-07 16:21 [bug#73106] [PATCH 00/10] Add python-tokenizers Nicolas Graves via Guix-patches via
2024-09-07 16:56 ` [bug#73106] [PATCH 01/10] gnu: Add rust-esaxx-rs-0.1 Nicolas Graves via Guix-patches via
2024-09-07 16:56 ` [bug#73106] [PATCH 02/10] gnu: Add rust-spm-precompiled-0.1 Nicolas Graves via Guix-patches via
2024-09-07 16:56 ` [bug#73106] [PATCH 03/10] gnu: Add rust-macro-rules-attribute-proc-macro-0.2 Nicolas Graves via Guix-patches via
2024-09-07 16:56 ` [bug#73106] [PATCH 04/10] gnu: Add rust-macro-rules-attribute-0.2 Nicolas Graves via Guix-patches via
2024-09-07 16:56 ` Nicolas Graves via Guix-patches via [this message]
2024-09-07 16:56 ` [bug#73106] [PATCH 06/10] gnu: Add rust-monostate-impl-0.1 Nicolas Graves via Guix-patches via
2024-09-07 16:56 ` [bug#73106] [PATCH 07/10] gnu: Add rust-monostate-0.1 Nicolas Graves via Guix-patches via
2024-09-07 16:56 ` [bug#73106] [PATCH 08/10] gnu: Add rust-tokenizers Nicolas Graves via Guix-patches via
2024-09-07 16:56 ` [bug#73106] [PATCH 09/10] gnu: Add rust-numpy-0.21 Nicolas Graves via Guix-patches via
2024-09-07 16:56 ` [bug#73106] [PATCH 10/10] gnu: Add python-tokenizers Nicolas Graves via Guix-patches via
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240907165626.22651-5-ngraves@ngraves.fr \
--to=guix-patches@gnu.org \
--cc=73106@debbugs.gnu.org \
--cc=ngraves@ngraves.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).