blob: 3b20ee912d6cb11b2647347c44711ec4394787f3 (
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
|
# Maintainer: taotieren <admin@taotieren.com>
pkgname=python-curated-transformers
_name=${pkgname#python-}
pkgver=2.0.1
pkgrel=1
epoch=
pkgdesc="A PyTorch library of transformer models and components"
arch=('any')
url="https://pypi.org/project/${_name}"
_name=${_name//-/_}
license=(MIT)
groups=()
provides=(${pkgname})
conflicts=(${pkgname})
depends=(
python
python-huggingface-hub
python-pytorch
# AUR
python-catalogue
python-curated-tokenizers
python-tokenizers
python-pytest
python-pytest-mypy
)
makedepends=(
python-hatchling
python-build
python-installer
python-wheel
python-setuptools
)
optdepends=()
options=('!strip' '!debug')
source=("${_name}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
noextract=()
sha256sums=('3348e639d9247bf222bcd90cefded05b37c5dc0e798b0af6957e37a4aafd0f1d')
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"
}
|