summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cfb83c28d7789597de26debe81188dee19a6618e (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
# Maintainer: Anakojm <https://anakojm.net/about.html>

pkgname='python-nntoolkit'
_name=${pkgname#python-}
pkgver=0.2.2
pkgrel=1
pkgdesc="Toolkit to train neural networks"
arch=('any')
url="https://pypi.org/project/$_name/"
license=('MIT')
depends=('python>=3.6.0' 'python-numpy' 'python-h5py' 'python-keras' 'python-natsort' 'python-yaml' 'python-click')
makedepends=('python-build' 'python-installer' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('f9cf5b1cc6ad4c2b778c945959f0afc60619a62bec0eefacef4b28fb4f44f88d')

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

package(){
    cd "$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
}