diff options
Diffstat (limited to 'testing/py3-livestream/APKBUILD')
-rw-r--r-- | testing/py3-livestream/APKBUILD | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/testing/py3-livestream/APKBUILD b/testing/py3-livestream/APKBUILD index 2dddb0d1284..932310d0c44 100644 --- a/testing/py3-livestream/APKBUILD +++ b/testing/py3-livestream/APKBUILD @@ -2,31 +2,34 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py3-livestream _pkgname=PyLivestream -pkgver=1.5.1 -pkgrel=3 +pkgver=2.0.0 +pkgrel=1 pkgdesc="Simple cross-platform FFmpeg-based live streaming to YouTube, Periscope, Facebook Live and more" url="https://github.com/scivision/PyLivestream" arch="noarch" license="AGPL-3.0-or-later" depends="ffmpeg" -makedepends="python3-dev py3-setuptools" +makedepends="python3-dev py3-gpep517 py3-installer py3-setuptools py3-wheel" +checkdepends="py3-pytest py3-pytest-timeout xvfb-run" +subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/scivision/$_pkgname/archive/v$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" build() { - cd "$builddir" - python3 setup.py build + gpep517 build-wheel \ + --wheel-dir .dist \ + --output-fd 1 } check() { - cd "$builddir" - python3 setup.py check + PYTHONPATH=src xvfb-run -a python3 -m pytest } package() { - cd "$builddir" - python3 setup.py install --prefix=/usr --root="$pkgdir" - install -D -m0644 stream.ini "$pkgdir"/etc/$_pkgname/stream.ini + python3 -m installer -d "$pkgdir" \ + .dist/*.whl } -sha512sums="e31f3e66f233935a4843ccaf3569d6b0439f5be21b4e9ddf94b5e87315503ce6b00d64739dd3fa86a8e8bcb011f1523e62ac0aec2ac9dc8628502f14c09e39db py3-livestream-1.5.1.tar.gz" +sha512sums=" +98d6343b41354625d618b9e3c91da180c72c44526e1c62e8eb30f3a7cfa902849f33f7eca3d80ccb9f8eca7f1675e5397fefa4239310100c5f21b933e80a0825 py3-livestream-2.0.0.tar.gz +" |