blob: 3eb3ee34d6836dd1bfc9f366203d4a0e32c4d919 (
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
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
_pkgname=timm
pkgname=python-timm
pkgver=1.0.15
pkgrel=1
pkgdesc='PyTorch Image Models'
arch=('any')
url='https://pypi.org/project/timm/'
license=('Apache-2.0')
depends=(
python-huggingface-hub
python-numpy
python-pillow
python-pytorch
python-safetensors
python-scipy
python-torchvision
python-yaml
)
makedepends=(
python-build
python-installer
python-pdm-backend
python-wheel
)
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-$pkgver.tar.gz")
sha512sums=('cc829c073636f0dccf45ffd78ef38e9921a70bea39102a1345781e9da4ab83cfc5a27308ff5e34440a1ee339bfec5a75008ccca24e69e399fe5d40f4c26f2117')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
# vim:set ts=2 sw=2 et:
|