upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-mpv / trunk / PKGBUILD
blobfe54f2d1660baeb7b9efba6d0d5c7397ccd99f91
1 # Maintainer: Daniel M. Capella <polyzen@archlinux.org>
2 # Contributor: Caltlgin Stsodaat <contact@fossdaily.xyz>
3 # Contributor: Ekin Dursun <ekindursun@gmail.com>
5 pkgname=python-mpv
6 pkgver=1.0.3
7 pkgrel=4
8 pkgdesc='Python interface to the awesome mpv media player'
9 arch=('any')
10 url=https://github.com/jaseg/python-mpv
11 _url_pypi=https://pypi.org/project/python-mpv
12 license=('GPL' 'LGPL')
13 depends=('mpv' 'python')
14 makedepends=('python-build' 'python-installer' 'python-setuptools'
15              'python-wheel')
16 checkdepends=('python-pytest' 'python-xvfbwrapper')
17 optdepends=('python-pillow: for raw screenshot support')
18 source=("https://github.com/jaseg/$pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
19 b2sums=('0701147415c920be4ec65151ed7844bb36c275bcc64ae07d4ece9a515a96ba09097a8f2282eb7bbb74e8dc143d14f9a0aebdfadad53e0e9e4d62fcde734c7d17')
21 build() {
22   cd $pkgname-$pkgver
23   python -m build --wheel --skip-dependency-check --no-isolation
26 check() {
27   cd $pkgname-$pkgver
28   pytest
31 package() {
32   cd $pkgname-$pkgver
33   python -m installer --destdir="$pkgdir" dist/*.whl
34   install -Dm644 'README.rst' -t "$pkgdir"/usr/share/doc/$pkgname