mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-18 12:07:07 +02:00
38 lines
1,019 B
Text
38 lines
1,019 B
Text
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
|
maintainer="Patrycja Rosa <alpine@ptrcnull.me>"
|
|
pkgname=py3-tokenizers
|
|
pkgver=0.21.0
|
|
pkgrel=0
|
|
pkgdesc="Fast State-of-the-Art Tokenizers optimized for Research and Production"
|
|
url="https://github.com/huggingface/tokenizers"
|
|
arch="all !s390x !riscv64" # 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="
|
|
df2c290cdbd3b610d07ff511ad46ce927cb272b78bd119aeff2e5d79067cb688a74d351ab5894f0f2db3227e55c33fa2a8b7e873950c59fdfdae4e65f48e31cf py3-tokenizers-0.21.0.tar.gz
|
|
"
|