# Maintainer: Mark Wagie # Contributor: Michael Riegert # Contributor: Felix Golatofski # Contributor: Sibren Vasse # Contributor: Daniel M. Capella # Contributor: Morten Linderud pkgname=python-pychromecast _name=PyChromecast pkgver=13.0.3 pkgrel=1 pkgdesc='Library for Python 3 to communicate with the Google Chromecast' arch=('any') url="https://github.com/home-assistant-libs/pychromecast" license=('MIT') depends=('python-protobuf' 'python-zeroconf' 'python-casttube') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=('b3a26ceaec59aa3bb52e3a701202549e500594a96e1e140b391c27b6bd06b701') build() { cd "$_name-$pkgver" python -m build --wheel --no-isolation } package() { cd "$_name-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" }