aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-guessit/APKBUILD
blob: 7496e01913c1582665b737c84101464f9724667a (plain) (blame)
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
# Contributor: Philipp Glaum <p@pglaum.de>
# Maintainer: Philipp Glaum <p@pglaum.de>
pkgname=py3-guessit
_pkgname=guessit
pkgver=3.3.0
pkgrel=0
pkgdesc="Library for guessing information from video filenames"
url="https://pypi.org/project/guessit/"
arch="noarch !mips !mips64"
license="LGPL-3.0-only"
depends="python3 py3-rebulk py3-babelfish py3-dateutil py3-six py3-setuptools"
checkdepends="py3-pip py3-pytest py3-pytest-benchmark py3-yaml"
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() {
	py.test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/guessit/test
}

sha512sums="5569572ed6d7910b320e1742b902325baf3f3455598e17a7e3bb36ae5da0e450d4bc2db0b1651a8d4df7354e0624216c1093aace48ef607b3146933fbb83a918  guessit-3.3.0.tar.gz"