gnu: Add python-ctranslate2.

* gnu/packages/machine-learning.scm (python-ctranslate2): New variable.

Co-authored-by: Nicolas Graves <ngraves@ngraves.fr>
Change-Id: I91dde4a564502971a9e80f1e89179b2922a2721a
This commit is contained in:
Fi guadec 2025-06-15 02:08:04 +02:00 committed by Andreas Enge
parent ef846411d5
commit 8a4a1fa928
No known key found for this signature in database
GPG key ID: F7D5C9BF765C61E3

View file

@ -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")