# Maintainer: Andrej Radović pkgname=python-inventree _name=${pkgname#python-} pkgver=0.13.4 pkgrel=2 pkgdesc="Python interface for InvenTree inventory management system" url="https://github.com/inventree/inventree-python/" depends=( 'python' 'python-requests' ) makedepends=(python-build python-installer python-wheel python-setuptools) license=('GPL3') arch=('any') source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=('09cbbfbd7a4729d2614b6a5d2c12fe82b7a61cfa8db4bb13f3b9dff71dd6cfb5') build() { cd "$srcdir/$_name-$pkgver" python -m build --wheel --no-isolation } package() { cd "$srcdir/$_name-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl cd $pkgdir/usr/lib/python3*/site-packages/ rm -rf scripts test }