mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-10 03:01:44 +01:00
the two are distinct, url isn't a variable. it could be changed to update to e.g. a documentation site, source url is separate
51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
|
|
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
|
|
pkgname=subliminal
|
|
pkgver=2.1.0
|
|
pkgrel=2
|
|
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"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/Diaoul/subliminal/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 --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
9b26ae594895470830547eed604aa5b28b75f590e5be12c2d5a478c5daf798d405f209639bd54dce0565b0e27d1b0daa5bef87dfa8590af61f2ab1e287c41060 subliminal-2.1.0.tar.gz
|
|
6028c0fcdb34825c216103cfb0209dfe849ef634fcb1dfd97c38798fba6db251071f51f3ee5a213ae5e53c3c1b9f883797b830fb34eeff26159c653a2df0f0af tests.patch
|
|
145884314c7adbf23785ae91a3f8eb67c8c4c80e110359816bd4a82193ef205677095742323191806988d18d96f001f893935a0da9d4a6992869183f674406e9 legendastv.patch
|
|
"
|