gnu: python-sentencepiece: Switch to pyproject.

* gnu/packages/machine-learning.scm (python-sentencepiece)[build-system]:
Switch to pyproject-build-system.
[native-inputs]: Add python-pytest and python-setuptools-next.

Change-Id: Ib675129d61eb960f45b0f34e30fa1ecd768f9cab
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
This commit is contained in:
Cayetano Santos 2025-09-07 22:54:54 +02:00 committed by Sharlatan Hellseher
parent 24a1720154
commit 605e06c728
No known key found for this signature in database
GPG key ID: 76D727BFF62CD2B5

View file

@ -1457,7 +1457,7 @@ storing tensors safely.")
(package (package
(inherit sentencepiece) (inherit sentencepiece)
(name "python-sentencepiece") (name "python-sentencepiece")
(build-system python-build-system) (build-system pyproject-build-system)
(arguments (arguments
(list (list
#:phases #:phases
@ -1465,7 +1465,8 @@ storing tensors safely.")
(add-after 'unpack 'chdir (add-after 'unpack 'chdir
(lambda _ (lambda _
(chdir "python")))))) (chdir "python"))))))
(native-inputs (list pkg-config protobuf)) (native-inputs
(list pkg-config protobuf python-pytest python-setuptools-next))
(propagated-inputs (list sentencepiece)) (propagated-inputs (list sentencepiece))
(synopsis "SentencePiece python wrapper") (synopsis "SentencePiece python wrapper")
(description "This package provides a Python wrapper for the SentencePiece (description "This package provides a Python wrapper for the SentencePiece