unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Nicolas Graves via Guix-patches via <guix-patches@gnu.org>
To: 73106@debbugs.gnu.org
Cc: ngraves@ngraves.fr
Subject: [bug#73106] [PATCH 02/10] gnu: Add rust-spm-precompiled-0.1.
Date: Sat,  7 Sep 2024 18:56:08 +0200	[thread overview]
Message-ID: <20240907165626.22651-2-ngraves@ngraves.fr> (raw)
In-Reply-To: <20240907165626.22651-1-ngraves@ngraves.fr>

* gnu/packages/machine-learning.scm (rust-spm-precompiled-0.1): New variable.

Change-Id: I622c1a875e10041703ef0a32e7c35074f534276b
---
 gnu/packages/machine-learning.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 4385603a4a..d3f76ebeba 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -5600,6 +5600,33 @@ (define-public rust-esaxx-rs-0.1
      "This package provides a wrapper around sentencepiece's esaxxx library.")
     (license license:asl2.0)))
 
+(define-public rust-spm-precompiled-0.1
+  (package
+    (name "rust-spm-precompiled")
+    (version "0.1.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "spm_precompiled" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "09pkdk2abr8xf4pb9kq3rk80dgziq6vzfk7aywv3diik82f6jlaq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-base64" ,rust-base64-0.13)
+        ("rust-nom" ,rust-nom-7)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-unicode-segmentation" ,rust-unicode-segmentation-1))))
+    (home-page "https://github.com/huggingface/spm_precompiled")
+    (synopsis "Emulate sentencepiece's DoubleArray")
+    (description
+     "This crate aims to emulate
+@url{https://github.com/google/sentencepiece,sentencepiece}
+Dart::@code{DoubleArray} struct and it's Normalizer.  This crate is highly
+specialized and not intended for general use.")
+    (license license:asl2.0)))
+
 (define-public python-hmmlearn
   (package
     (name "python-hmmlearn")
-- 
2.45.2





  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   ` Nicolas Graves via Guix-patches via [this message]
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   ` [bug#73106] [PATCH 05/10] gnu: Add rust-hf-hub-0.3 Nicolas Graves via Guix-patches via
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-2-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).