mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-04-05 22:02:22 +02:00
39 lines
1.0 KiB
Plaintext
39 lines
1.0 KiB
Plaintext
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
pkgname=py3-tokenizers
|
|
pkgver=0.19.1
|
|
pkgrel=0
|
|
pkgdesc="Fast State-of-the-Art Tokenizers optimized for Research and Production"
|
|
url="https://github.com/huggingface/tokenizers"
|
|
arch="all !s390x !riscv64 !loongarch64" # blocked by rust
|
|
license="Apache-2.0"
|
|
depends="python3"
|
|
makedepends="
|
|
bzip2-dev
|
|
cargo
|
|
openssl-dev>3
|
|
py3-gpep517
|
|
py3-maturin
|
|
py3-wheel
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/huggingface/tokenizers/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/tokenizers-$pkgver/bindings/python"
|
|
options="net !check" # requires pulling test data
|
|
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/tokenizers*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
7d0eec43ed97ff12075d93a81345439cdd39ac41f2c4606d26aa01249fade8549c778f44e411556b1ebd142fe761fce63eb15cd159cc49cae9fc15a2233b10bd py3-tokenizers-0.19.1.tar.gz
|
|
"
|