| 1 | # Maintainer: Willow Barraco <[email protected]> |
| 2 | pkgname=py3-mpegdash |
| 3 | pkgver=0.4.1 |
| 4 | pkgrel=0 |
| 5 | pkgdesc="MPEG-DASH MPD (Media Presentation Description) Parser compatible with Python 3+" |
| 6 | url="https://pypi.org/project/mpegdash/" |
| 7 | arch="noarch" |
| 8 | license="MIT" |
| 9 | makedepends="py3-gpep517 py3-setuptools py3-wheel" |
| 10 | checkdepends="py3-pytest" |
| 11 | subpackages="$pkgname-pyc" |
| 12 | source="$pkgname-$pkgver.tar.gz::https://github.com/sangwonl/python-mpegdash/archive/refs/tags/$pkgver.tar.gz" |
| 13 | builddir="$srcdir/python-mpegdash-$pkgver" |
| 14 | |
| 15 | build() { |
| 16 | gpep517 build-wheel \ |
| 17 | --wheel-dir .dist \ |
| 18 | --output-fd 3 3>&1 >&2 |
| 19 | } |
| 20 | |
| 21 | check() { |
| 22 | python3 -m venv --clear --without-pip --system-site-packages .testenv |
| 23 | .testenv/bin/python3 -m installer .dist/*.whl |
| 24 | # skip test that uses http://yt-dash-mse-test.commondatastorage.googleapis.com |
| 25 | .testenv/bin/python3 -m pytest \ |
| 26 | --deselect tests/test_xmltompd.py::XML2MPDTestCase::test_xml2mpd_from_url |
| 27 | } |
| 28 | |
| 29 | package() { |
| 30 | python3 -m installer -d "$pkgdir" \ |
| 31 | .dist/*.whl |
| 32 | } |
| 33 | |
| 34 | sha512sums=" |
| 35 | cd2b077d652a2bcaf7bb250696e90df07efe69fe0aa76636363ae810c4ed9cdc6d5cc2521964b2f69f018526f5f150c931b1b0feba5ccb977f171e09b4ba16fb py3-mpegdash-0.4.1.tar.gz |
| 36 | " |