From patchwork Sat Sep 7 16:56:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 67726 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 245DC27BBEA; Sat, 7 Sep 2024 17:57:20 +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 866FF27BBE2 for ; Sat, 7 Sep 2024 17:57:19 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smykF-0000ti-St; Sat, 07 Sep 2024 12:57:07 -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 1smykC-0000s8-LY for guix-patches@gnu.org; Sat, 07 Sep 2024 12:57:04 -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 1smykC-0001bx-C0 for guix-patches@gnu.org; Sat, 07 Sep 2024 12:57:04 -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=u5kmPC4z/BMZ8b82XXWqBr3nPgBryvUwFgRrL180Dp0=; b=YPr9zxdQ2rtZXJzmyeGt5afF92VmkuomzmU99jxgcbTbX0qXSCKKch75OgH6AepQtFfONx1CdUFW+/jXPnbosPSUOHsq1xymfGTyuOIGMeFw11SILB5vpp04dWZp4QwglW2w3X9c4xaHfN/s7kwP4QhYSI9RXM0oJBn+WhJKrYvCsO8i8tXzPspv4AuBYjxZlw4lqgKso31OFPj2NwxDslXCcZVmOwK/ve5gGzNhFTHWUskKWJ2o5zlaMY20Uluxdo0pvjkSyHS9CKMYwy6sSTnuRnpc0G5qLRac0SpMTiqAyTRm97GfWkK1qVByrIM2AhK+eJ0lhSUw8vjgWiAfIQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smykD-0007wS-Ap for guix-patches@gnu.org; Sat, 07 Sep 2024 12:57:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73106] [PATCH 08/10] gnu: Add rust-tokenizers. Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 07 Sep 2024 16:57:05 +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.172572820530431 (code B ref 73106); Sat, 07 Sep 2024 16:57:05 +0000 Received: (at 73106) by debbugs.gnu.org; 7 Sep 2024 16:56:45 +0000 Received: from localhost ([127.0.0.1]:57451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smyjs-0007ud-CM for submit@debbugs.gnu.org; Sat, 07 Sep 2024 12:56:44 -0400 Received: from 6.mo550.mail-out.ovh.net ([46.105.43.205]:55519) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smyjo-0007td-13 for 73106@debbugs.gnu.org; Sat, 07 Sep 2024 12:56:40 -0400 Received: from director10.ghost.mail-out.ovh.net (unknown [10.109.140.54]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 4X1K4j2kh2z1PNs for <73106@debbugs.gnu.org>; Sat, 7 Sep 2024 16:56:37 +0000 (UTC) Received: from ghost-submission-55b549bf7b-hc4cq (unknown [10.110.168.145]) by director10.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 042FF1FDF0; Sat, 7 Sep 2024 16:56:36 +0000 (UTC) Received: from ngraves.fr ([37.59.142.105]) by ghost-submission-55b549bf7b-hc4cq with ESMTPSA id h9ecMcSF3GZNFwAAKgHleA (envelope-from ); Sat, 07 Sep 2024 16:56:36 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-105G006181eaffc-6a8c-46d9-bc6d-1a1676e49fc0, 9FD0014F98746B3795650381BBEC0664E0950E21) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 81.67.146.208 Date: Sat, 7 Sep 2024 18:56:14 +0200 Message-ID: <20240907165626.22651-8-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: 9639110579352363746 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrudeifedguddutdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomheppfhitgholhgrshcuifhrrghvvghsuceonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqeenucggtffrrghtthgvrhhnpedvheelieffheetvdelhfffffejfefgudfhteekveehieetudeiudfgkeeutdehjeenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugeeirddvtdekpdefjedrheelrddugedvrddutdehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeejfedutdeiseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehhedtpdhmohguvgepshhmthhpohhuth DKIM-Signature: a=rsa-sha256; bh=u5kmPC4z/BMZ8b82XXWqBr3nPgBryvUwFgRrL180Dp0=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1725728197; v=1; b=AzbXgAptbSi/CbrLrzVmGjL4bSakbdWKqyRnyqAlA7ww5KZVtFi8i1umhDdf0F5ImbV3w+Lq oyayFkWtbMXR/KEw4JgpFu4WLhS2nFzaPwFbcYJxxUTfq9wIt+bzhtyWGrjKeOWLfPNz20xsYet g6/phTO+gQjaFKPBwbBvoRAYTcByJrWjxu73+0QmDTq9OQMRblk0in0LcrAIY3hVNFKOaxYf4KK WRvfDYwDTOcTG/RBk4z+hgPmiKN26LPmvQIM6ZWe22LUNITs3cROE6fapLkOsfJIeQYpTXppCCS jBqeUGqd1kom3pbhE4BtRbXWI4Ks/009jcA1OkauDeoAA== 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-tokenizers): New variable. Change-Id: I3189a2d826f072f65ad053d77eb39be39775f1c2 --- gnu/packages/machine-learning.scm | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 27d7f0526b..3b601f6c91 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -5675,6 +5675,66 @@ (define-public rust-hf-hub-0.3 python package, but only implements a smaller subset of functions.") (license license:asl2.0))) +(define-public rust-tokenizers + (package + (name "rust-tokenizers") + (version "0.19.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "tokenizers" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1zg6ffpllygijb5bh227m9p4lrhf0pjkysky68kddwrsvp8zl075")) + (modules '((guix build utils))) + (snippet + #~(substitute* "Cargo.toml" + (("0.1.12") ; rust-monostate requires a rust-syn-2 update + "0.1.11") + (("version = \"6.4\"") ; rust-onig + "version = \"6.1.1\""))))) + (build-system cargo-build-system) + (arguments + (list + #:tests? #f ; tests are relying on missing data. + #:cargo-inputs + `(("rust-aho-corasick" ,rust-aho-corasick-1) + ("rust-derive-builder" ,rust-derive-builder-0.20) + ("rust-esaxx-rs" ,rust-esaxx-rs-0.1) + ("rust-fancy-regex" ,rust-fancy-regex-0.13) + ("rust-getrandom" ,rust-getrandom-0.2) + ("rust-hf-hub" ,rust-hf-hub-0.3) + ("rust-indicatif" ,rust-indicatif-0.17) + ("rust-itertools" ,rust-itertools-0.12) + ("rust-lazy-static" ,rust-lazy-static-1) + ("rust-log" ,rust-log-0.4) + ("rust-macro-rules-attribute" ,rust-macro-rules-attribute-0.2) + ("rust-monostate" ,rust-monostate-0.1) + ("rust-onig" ,rust-onig-6) + ("rust-paste" ,rust-paste-1) + ("rust-rand" ,rust-rand-0.8) + ("rust-rayon" ,rust-rayon-1) + ("rust-rayon-cond" ,rust-rayon-cond-0.3) + ("rust-regex" ,rust-regex-1) + ("rust-regex-syntax" ,rust-regex-syntax-0.8) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1) + ("rust-spm-precompiled" ,rust-spm-precompiled-0.1) + ("rust-thiserror" ,rust-thiserror-1) + ("rust-unicode-normalization-alignments" ,rust-unicode-normalization-alignments-0.1) + ("rust-unicode-segmentation" ,rust-unicode-segmentation-1) + ("rust-unicode-categories" ,rust-unicode-categories-0.1)) + #:cargo-development-inputs + `(("rust-assert-approx-eq" ,rust-assert-approx-eq-1) + ("rust-criterion" ,rust-criterion-0.5) + ("rust-tempfile" ,rust-tempfile-3)))) + (home-page "https://github.com/huggingface/tokenizers") + (synopsis "Implementation of various popular tokenizers") + (description + "This package provides a Rust implementation of today's most used +tokenizers, with a focus on performances and versatility.") + (license license:asl2.0))) + (define-public python-hmmlearn (package (name "python-hmmlearn")