# Contributor: Fabricio Silva # Maintainer: Fabricio Silva pkgname=py3-plexapi pkgver=4.17.0 pkgrel=0 pkgdesc="Python bindings for the Plex API" url="https://github.com/pkkid/python-plexapi" arch="noarch" license="BSD-3-Clause" # tests requires an instance of plex running # net for sphinx options="net !check" depends=" python3 py3-requests " makedepends=" py3-gpep517 py3-setuptools py3-sphinx_rtd_theme py3-wheel " subpackages="$pkgname-doc $pkgname-pyc" source="https://github.com/pkkid/python-plexapi/archive/$pkgver/py3-plexapi-$pkgver.tar.gz" builddir="$srcdir/python-plexapi-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 sphinx-build -W -b man docs man } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl install -Dm644 man/pythonplexapi.1 -t "$pkgdir"/usr/share/man/man1 } sha512sums=" 6125ab436d4514a5fef9cd733f493778911309f79577e81633f1e2f2f04b81e6c2533c5f7eeb4b0e15b1ecd7a99f9319f6580e421b5a9c7ae8356b5217721867 py3-plexapi-4.17.0.tar.gz "