mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
b286a6a81f
commit
a21053def4
1 changed files with 10 additions and 11 deletions
|
@ -1455,22 +1455,21 @@ storing tensors safely.")
|
||||||
|
|
||||||
(define-public python-sentencepiece
|
(define-public python-sentencepiece
|
||||||
(package
|
(package
|
||||||
|
(inherit sentencepiece)
|
||||||
(name "python-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)
|
(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))
|
(propagated-inputs (list sentencepiece))
|
||||||
(home-page "https://github.com/google/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
|
||||||
unsupervised text tokenizer.")
|
unsupervised text tokenizer.")))
|
||||||
(license license:asl2.0)))
|
|
||||||
|
|
||||||
(define-public python-sentence-transformers
|
(define-public python-sentence-transformers
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue