summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 605fff778e86bc1416e897047317c5347c6e4812 (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
# Maintainer: redponike <proton (dot) me>
# Contributor: Martino Pilia <martino.pilia@gmail.com>

pkgname=python-pytorch-ignite
_pkgname=${pkgname#python-pytorch-}
pkgver=0.5.2
pkgrel=1
pkgdesc="High-level library to help with training and evaluating neural networks in PyTorch flexibly and transparently."
arch=('any')
url="https://pytorch-ignite.ai"
license=('BSD-3-Clause')
depends=(
	'python-numpy'
	'python-matplotlib'
	'python-scikit-learn'
	'python-packaging'
	'python-clearml'
	'python-pytorch'
	'python-torchvision'
)
makedepends=('python-build' 'python-installer' 'python-wheel')
conflicts=('python-pytorch-ignite-git')
source=("https://github.com/pytorch/ignite/archive/v${pkgver}.tar.gz")
sha256sums=('f11777f5ab9f74d72c66adfb9214ae16ad1752ca0e866d6bf6f1c0738c5e99c2')


build() {
	cd "${_pkgname}-${pkgver}"
	python -m build --wheel --no-isolation
}

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