blob: 93fe09e957a1b7981861ebe411672ff7ae574003 (
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
|
# Maintainer: Alex Hirzel <alex at hirzel period us>
pkgname='python-open-clip-torch'
_name=open_clip
pkgver='2.30.0'
pkgrel=1
pkgdesc="Open source implementation of OpenAI's CLIP (Contrastive Language-Image Pre-training)."
url="https://github.com/mlfoundations/${name}"
depends=(
'python-braceexpand'
'python-fsspec'
'python-ftfy'
'python-horovod'
'python-huggingface-hub'
'python-nltk'
'python-pandas'
'python-regex'
'python-safetensors'
'python-sentencepiece'
'python-timm'
'python-torchvision'
'python-tqdm'
'python-transformers'
'python-wandb'
'python-webdataset'
)
makedepends=('python-build' 'python-installer' 'python-wheel')
license=('MIT')
arch=('any')
source=("https://github.com/mlfoundations/${_name}/archive/refs/tags/v${pkgver}.zip")
sha256sums=('8537e54025314884b5a2bb221ef6c1c9b76c6eccea2e54eef33e94de9b2305d7')
build() {
cd "${srcdir}/${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|