blob: a0efa98ebdf8c6b9e31095b3f392716d5a76a6db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Contributor: Philipp Glaum <p@pglaum.de>
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=py3-pymediainfo
_pkgname=pymediainfo
pkgver=5.0.3
pkgrel=2
pkgdesc="A Python wrapper for the mediainfo library."
url="https://pypi.org/project/pymediainfo/"
arch="noarch"
license="MIT"
depends="libmediainfo python3 py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
makedepends="py3-setuptools py3-setuptools_scm"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
python3 setup.py build
}
check() {
# skip failing tests
PYTHONPATH="$PWD"/build/lib pytest \
-k 'not test_thread_safety[sample.mp4] and not test_thread_safety[sample.mkv]'
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="4124b69910050fb84162140cda5e184cb0fc13b06b85ae61ff6e47b4fca236242558b9c3c8ea90ab804ed9400171f7b1dccc25ec5961b37d1f68de21fe64580e pymediainfo-5.0.3.tar.gz"
|