summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFi guadec <lapearldot@disroot.org>2025-06-15 02:08:04 +0200
committerAndreas Enge <andreas@enge.fr>2025-07-03 21:57:32 +0200
commit8a4a1fa92860af3e47dd11b588ca6ab7a85e592c (patch)
tree51c415614a8bdc5612504daf032125523538f714
parentef846411d5db84c49278e34896b8a71b47ca421b (diff)
gnu: Add python-ctranslate2.
* gnu/packages/machine-learning.scm (python-ctranslate2): New variable. Co-authored-by: Nicolas Graves <ngraves@ngraves.fr> Change-Id: I91dde4a564502971a9e80f1e89179b2922a2721a
-rw-r--r--gnu/packages/machine-learning.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index cdffae1599..a57083d4a5 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -6337,6 +6337,26 @@ reordering, etc., to accelerate and reduce the memory usage of Transformer
models on CPU and GPU.")
(license license:expat)))
+(define-public python-ctranslate2
+ (package/inherit ctranslate2
+ (name "python-ctranslate2")
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ ;; XXX: tests require the eole python project.
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'cd-to-build-dir
+ (lambda _
+ (chdir "python"))))))
+ (native-inputs (list ctranslate2
+ python-setuptools
+ python-wheel
+ pybind11-2.10
+ python-pyyaml
+ python-numpy))))
+
(define-public python-hmmlearn
(package
(name "python-hmmlearn")