From patchwork Sat Sep 7 16:56:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 67730 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B958E27BBE2; Sat, 7 Sep 2024 17:57:40 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1966527BBE9 for ; Sat, 7 Sep 2024 17:57:40 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smykE-0000sH-Rc; Sat, 07 Sep 2024 12:57:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smykB-0000p8-A4 for guix-patches@gnu.org; Sat, 07 Sep 2024 12:57:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smykB-0001bf-0y for guix-patches@gnu.org; Sat, 07 Sep 2024 12:57:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=BvZXI7Kb1TDfr8xhZt9JdpMiuYj63axvJhZ3Fc8ENp4=; b=VNzMs9sryTT4Ky4KWE9I91hPOjVz7odnmBbhkf89m3bUBagxzMBqNebFQsyyee1d4PPrInN5woTXhDbUuRFeWLVNmCEPkT318JK4tVQdwEEnxESOv7y0lgq2nZcYZWIJ+oW+b1xCKKiUx1WUKmOY/5xU1Rd5JyhX/WU1MHxZVMVObFIIU6iF4CZsPT3MGmVIGgT9CqlllpRL1dTL7sQkcusKmsmQ2pQFpCcnaximaZYFbWqtbpeWA4ng6YqelcjR2wfhG/Ld71fxeussMLqvWakoDJJEx4f7DjWdYnN/pIoswbqF9cAbRBWOLdzaRR3bY8+0fLZTfFu6sS8nByrO0Q==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smykC-0007w6-0V for guix-patches@gnu.org; Sat, 07 Sep 2024 12:57:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73106] [PATCH 05/10] gnu: Add rust-hf-hub-0.3. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 Sep 2024 16:57:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73106 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73106@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 73106-submit@debbugs.gnu.org id=B73106.172572820330407 (code B ref 73106); Sat, 07 Sep 2024 16:57:03 +0000 Received: (at 73106) by debbugs.gnu.org; 7 Sep 2024 16:56:43 +0000 Received: from localhost ([127.0.0.1]:57445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smyjr-0007uL-5I for submit@debbugs.gnu.org; Sat, 07 Sep 2024 12:56:43 -0400 Received: from 4.mo583.mail-out.ovh.net ([178.33.111.247]:33807) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smyjl-0007t4-8p for 73106@debbugs.gnu.org; Sat, 07 Sep 2024 12:56:39 -0400 Received: from director11.ghost.mail-out.ovh.net (unknown [10.108.17.88]) by mo583.mail-out.ovh.net (Postfix) with ESMTP id 4X1K4f6F64z1TJf for <73106@debbugs.gnu.org>; Sat, 7 Sep 2024 16:56:34 +0000 (UTC) Received: from ghost-submission-55b549bf7b-hn9v2 (unknown [10.111.182.135]) by director11.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 88F781FDAC; Sat, 7 Sep 2024 16:56:34 +0000 (UTC) Received: from ngraves.fr ([37.59.142.101]) by ghost-submission-55b549bf7b-hn9v2 with ESMTPSA id aP3lEMKF3GZ/wgkA4YKJng (envelope-from ); Sat, 07 Sep 2024 16:56:34 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-101G00459853fef-a27c-41eb-8e93-e925464ff39e, 9FD0014F98746B3795650381BBEC0664E0950E21) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.146.208 Date: Sat, 7 Sep 2024 18:56:11 +0200 Message-ID: <20240907165626.22651-5-ngraves@ngraves.fr> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240907165626.22651-1-ngraves@ngraves.fr> References: <20240907165626.22651-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 9638266152982799074 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrudeifedguddutdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpefhveejvdduieeihedvhfeihfffteekudfhjeekvdfgudetgefghfdvffegieevkeenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhhuhhgghhinhhgfhgrtggvrdgtohenucfkphepuddvjedrtddrtddruddpkedurdeijedrudegiedrvddtkedpfeejrdehledrudegvddruddtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepjeefuddtieesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekfedpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=BvZXI7Kb1TDfr8xhZt9JdpMiuYj63axvJhZ3Fc8ENp4=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1725728195; v=1; b=BbuGtVcCeDRwkUlNpJT7lMNkcoWZpTPpZhA48m2xwiA2KwZxTmQeS/FH7llD5XaaaXL7AZq/ bKYMO24F3UqQvPu7wclbh6BZcFJqnL1HT5vov9AYGj3Oe1hCxEMUPadm0ya8J9BRvOrNMlqbABn mE1U/Y6dBof1vTkKnkg3AabSZun0iBHi7sI5jhyBOwn+b6N6UPyQYek2HGeqLfvltjsliWs97gA YIFVyfSuxiVx8LttqShvLsdnaaAjiChV5lnwaZ+ntuCaFgNnXY2JgY3fOLCsxBcKUkG8tsbclYX wBrk4jqUfuMQMnZcqSLp6xhWshFxUTCfC83lTVgjyaWoA== X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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")