summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 62f57959d03101d96c222d0feb4891e1fd8d423c (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Maintainer: taotieren <admin@taotieren.com>

pkgname=python-spacy-curated-transformers
_name=${pkgname#python-}
pkgver=2.1.2
pkgrel=3
epoch=
pkgdesc="Curated transformer models for spaCy pipelines"
arch=('any')
url="https://pypi.org/project/${_name}"
_name=${_name//-/_}
license=(MIT)
groups=()
provides=(${pkgname})
conflicts=(${pkgname})
depends=(
    python
    python-fsspec
    python-numpy
    python-pytorch
    python-pytest
    python-typer
    # AUR
    python-confection
    python-curated-tokenizers
    python-curated-transformers
    python-fugashi
    python-huggingface-hub
    python-spacy
    python-srsly
    python-thinc
    python-transformers
    python-wasabi
)
makedepends=(
    python-hatchling
    python-build
    python-installer
    python-wheel
    python-setuptools
    python-pytest-mypy
)
optdepends=()
options=('!strip' '!debug')
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
sha256sums=('b39ad476a8cb23cc6c566b55b14808f34593c8b7849b26cc4718b71e106e9941')

build() {
    cd "${srcdir}/${_name}-${pkgver}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${srcdir}/${_name}-${pkgver}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}