summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 56f6695f797ce166e5c8d44120c716c55e71ef6e (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_torch
pkgver='2.24.0'
pkgrel=1
pkgdesc="Open source implementation of OpenAI's CLIP (Contrastive Language-Image Pre-training)."
url="https://github.com/mlfoundations/open_clip"
depends=(
#'python-torchvision'
	'python-braceexpand'
	'python-fsspec'
	'python-ftfy'
	'python-fvcore'
	'python-horovod'
	'python-huggingface-hub'
	'python-nltk'
	'python-pandas'
	'python-regex'
	'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/open_clip/archive/refs/tags/v${pkgver}.zip")
sha256sums=('0c49789a0e1f8f75b4ab8804a6c9c1b01b244da23c248e2a5d5590d1fec1633f')

build() {
	cd "${srcdir}/open_clip-${pkgver}"
	python setup.py build
}

package() {
	cd "${srcdir}/open_clip-${pkgver}"
	install -Dm644 LICENSE -t "${pkgdir}/usr/share/licenses/$pkgname"
	python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}