summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2026-01-12 15:24:48 +0900
committerCayetano Santos <csantosb@inventati.org>2026-01-31 09:58:46 +0100
commit819310310b532904692ec5dba0c0f2e883283a5b (patch)
treec5a2843417bca52c2a486b99ed0dc4a50e694623 /gnu/packages
parentf004a0629ef128c5cc13979e66a8c7d7cf81fa59 (diff)
gnu: Add python-argostranslate.
* gnu/packages/machine-learning.scm (python-argostranslate): New variable. Merges guix/guix!5564 Co-Authored-By: Lapearldot <lapearldot@disroot.org> Change-Id: I59b5159b19cfea97cc4aa83a8ffb482066cc2b01 Signed-off-by: Cayetano Santos <csantosb@inventati.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/machine-learning.scm41
1 files changed, 41 insertions, 0 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index f1e14d021ca..93dd307c5a2 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -103,6 +103,7 @@
103 #:use-module (gnu packages image-processing) 103 #:use-module (gnu packages image-processing)
104 #:use-module (gnu packages imagemagick) 104 #:use-module (gnu packages imagemagick)
105 #:use-module (gnu packages jupyter) 105 #:use-module (gnu packages jupyter)
106 #:use-module (gnu packages language)
106 #:use-module (gnu packages libedit) 107 #:use-module (gnu packages libedit)
107 #:use-module (gnu packages libevent) 108 #:use-module (gnu packages libevent)
108 #:use-module (gnu packages libffi) 109 #:use-module (gnu packages libffi)
@@ -6149,6 +6150,46 @@ models on CPU and GPU.")
6149It includes a sentence boundary component of a relatively small size.") 6150It includes a sentence boundary component of a relatively small size.")
6150 (license license:cc-by-sa3.0)))) 6151 (license license:cc-by-sa3.0))))
6151 6152
6153(define-public python-argostranslate
6154 (package
6155 (name "python-argostranslate")
6156 (version "1.10.0")
6157 (source
6158 (origin
6159 (method git-fetch)
6160 (uri (git-reference
6161 (url "https://github.com/argosopentech/argos-translate")
6162 (commit (string-append "v" version))))
6163 (file-name (git-file-name name version))
6164 (sha256
6165 (base32 "18fhqabdyh66ymri9xi9xc3q619f5bd3yb9izwhvwyladx65xcfn"))))
6166 (arguments
6167 (list
6168 #:phases
6169 #~(modify-phases %standard-phases
6170 (add-before 'check 'writable-home
6171 (lambda _
6172 ;; Tests want a writable home
6173 (setenv "HOME" "/tmp"))))))
6174 (build-system pyproject-build-system)
6175 (native-inputs (list python-pytest python-setuptools))
6176 (propagated-inputs (list python-ctranslate2
6177 python-packaging
6178 python-sacremoses
6179 python-sentencepiece
6180 python-spacy
6181 python-stanza
6182 python-xx-sent-ud-sm))
6183 (home-page "https://www.argosopentech.com")
6184 (synopsis "Offline translation library and CLI tool")
6185 (description
6186 "Argos Translate uses OpenNMT for translations and can be used
6187as either a Python library, command-line, or GUI application.
6188It supports installing language model packages which are ZIP archives
6189with a @code{.argosmodel} extension. This package provides
6190the Python library and the command-line program.")
6191 (license license:expat)))
6192
6152(define-public python-hmmlearn 6193(define-public python-hmmlearn
6153 (package 6194 (package
6154 (name "python-hmmlearn") 6195 (name "python-hmmlearn")