aboutsummaryrefslogtreecommitdiffstats
path: root/testing/subliminal/APKBUILD
blob: d1663391233f327f5915d015cd6fc9b4c515310f (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=subliminal
pkgver=2.1.0
pkgrel=1
pkgdesc="Python library and CLI tool for searching and downloading subtitles"
url="https://github.com/Diaoul/subliminal"
arch="noarch"
license="MIT"
depends="python3
		py3-guessit
		py3-babelfish
		py3-enzyme
		py3-beautifulsoup4
		py3-requests
		py3-dogpile.cache
		py3-stevedore
		py3-chardet
		py3-pysrt
		py3-appdirs
		py3-rarfile
		py3-click
		py3-six
		py3-tz
		"
makedepends="py3-setuptools"
checkdepends="python3-dev py3-pytest py3-pytest-runner libarchive-tools py3-vcrpy py3-sympy"
source="$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz
		tests.patch legendastv.patch"
options="!check" # missing simpy

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH=. \
	pytest -k 'not test_save_subtitles_single_directory_encoding'
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
9b26ae594895470830547eed604aa5b28b75f590e5be12c2d5a478c5daf798d405f209639bd54dce0565b0e27d1b0daa5bef87dfa8590af61f2ab1e287c41060  subliminal-2.1.0.tar.gz
6028c0fcdb34825c216103cfb0209dfe849ef634fcb1dfd97c38798fba6db251071f51f3ee5a213ae5e53c3c1b9f883797b830fb34eeff26159c653a2df0f0af  tests.patch
145884314c7adbf23785ae91a3f8eb67c8c4c80e110359816bd4a82193ef205677095742323191806988d18d96f001f893935a0da9d4a6992869183f674406e9  legendastv.patch
"