# Maintainer: Caleb Maclennan pkgname=python-browserstack-local _pkgname=browserstack-local pkgver=1.2.7 pkgrel=2 pkgdesc='Python bindings for BrowserStack Local' arch=(any) url="http://github.com/browserstack/$_pkgname-python" license=(MIT) depends=(python python-psutil) makedepends=(python-{build,installer,wheel} python-setuptools) _archive="$_pkgname-$pkgver" source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_archive.tar.gz") sha256sums=('3e8648f915477ba8599880571416f2f139463051b09a258cd9e6c101c39f393c') build() { cd "$_archive" python -m build -wn } package() { cd "$_archive" python -m installer -d "$pkgdir" dist/*.whl }