blob: 6d19da54bc02d2be4ce49e486a7be1fb4c14e777 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Maintainer: J. Nathanael Philipp (jnphilipp) <nathanael@philipp.land>
_pkgname=spacy-alignments
pkgname=python-${_pkgname}
pkgver=0.9.1
pkgrel=1
pkgdesc="A spaCy package for the Rust tokenizations library"
arch=(x86_64 aarch64)
url="https://github.com/explosion/spacy-alignments"
license=(MIT)
depends=(python-hypothesis)
makedepends=(
python-pip
python-wheel
python-setuptools
python-setuptools-rust
)
source=(
"https://github.com/explosion/${_pkgname}/archive/refs/tags/v${pkgver}.zip"
)
b2sums=("218639ba358f4455278e3749a943e5303be163aced272943e5d546fc73eada7b8ea5173f31e14021d1a4467f9482bdb18969e73a010d984edb0cb6656921e366")
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|