# Maintainer of this PKGBUILD file: Martino Pilia _pkgname=skorch pkgname=python-${_pkgname}-git pkgver=r489.be0c527 pkgrel=2 pkgdesc="A scikit-learn compatible neural network library that wraps pytorch" arch=('any') url="https://github.com/dnouri/skorch" license=('BSD3') depends=('python-scikit-learn' 'python-yaml' 'python-numpy' 'python-scipy' 'python-tqdm' 'python-pytorch' 'python-tabulate') makedepends=('python-setuptools' 'git') source=("git+https://github.com/dnouri/skorch.git") sha512sums=('SKIP') pkgver() { cd "$srcdir/$_pkgname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } package() { cd "$srcdir/$_pkgname" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" python setup.py install --optimize=1 --root="$pkgdir" }