blob: c47f8f5be0e8455911b1c86c834820b5eefd8587 (
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
|
# Maintainer: piernov <piernov@piernov.org>
pkgname=python-qualia-codegen-core
pkgver=2.3.0
pkgrel=1
pkgdesc="Convert a pre-trained Keras .h5 or PyTorch model to C code for inference."
arch=('any')
url="https://github.com/LEAT-EDGE/qualia-codegen-core"
license=('AGPL-3.0')
depends=('python' 'python-numpy' 'python-jinja' 'python-typing_extensions')
makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-pdm-backend')
optdepends=('python-keras: support for code generation from Keras models'
'python-pytorch: support for code generation from PyTorch models'
'python-graphviz: plot model graph')
source=("git+https://github.com/leat-edge/qualia-codegen-core.git#tag=$pkgver")
md5sums=('SKIP')
build() {
cd "$srcdir"/qualia-codegen-core
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir"/qualia-codegen-core
python -m installer --destdir="$pkgdir" dist/*.whl
}
|