diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2025-08-14 09:00:18 +0200 |
|---|---|---|
| committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2025-09-03 20:39:01 +0200 |
| commit | a21053def41f36e1a66298fca28b7e3db90114ce (patch) | |
| tree | b7f4278f2b25d927ec3e9842f612976b96aebc49 /gnu | |
| parent | b286a6a81f63cdd62e6e0d66e181cbb808377301 (diff) | |
gnu: python-sentencepiece: Inherit from sentencepiece.
* gnu/packages/machine-learning.scm (python-sentencepiece): Inherit from sentencepiece.
[arguments]: Add chdir #:phase.
[native-inputs]: Add protobuf.
[home-page]: Remove.
[license]: Remove.
Change-Id: I1072520b6786ded284cc28043fcfb356f748767e
Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/machine-learning.scm | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index 68838f71cf7..8f682cf9a1d 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -1455,22 +1455,21 @@ storing tensors safely.") (define-public python-sentencepiece (package + (inherit sentencepiece) (name "python-sentencepiece") - (version "0.1.97") - (source - (origin - (method url-fetch) - (uri (pypi-uri "sentencepiece" version)) - (sha256 - (base32 "0v0z9ryl66432zajp099bcbnwkkldzlpjvgnjv9bq2vi19g300f9")))) (build-system python-build-system) - (native-inputs (list pkg-config)) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'chdir + (lambda _ + (chdir "python")))))) + (native-inputs (list pkg-config protobuf)) (propagated-inputs (list sentencepiece)) - (home-page "https://github.com/google/sentencepiece") (synopsis "SentencePiece python wrapper") (description "This package provides a Python wrapper for the SentencePiece -unsupervised text tokenizer.") - (license license:asl2.0))) +unsupervised text tokenizer."))) (define-public python-sentence-transformers (package |
