# Maintainer: Chih-Hsuan Yen pkgname=netron-cli pkgver=7.7.2 pkgrel=1 pkgdesc='Visualizer for neural network, deep learning, and machine learning models (CLI only)' url='https://netron.app/' arch=(any) license=(MIT) depends=(python) makedepends=(python-setuptools python-build python-installer python-wheel) optdepends=( 'python-onnx: serializing ONNX models' 'python-pytorch: serializing PyTorch models' ) source=(https://github.com/lutzroeder/netron/archive/v$pkgver/netron-$pkgver.tar.gz) sha256sums=('9cb8ca2fb488e68dc3d9575da35d64d01878ed1be39e2e2f1543278e1c99c7de') build() { cd netron-$pkgver python package.py build version python -m build --wheel --no-isolation --outdir dist/pypi dist/pypi } package() { cd netron-$pkgver python -m installer --destdir="$pkgdir" dist/pypi/*.whl install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname }