mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
59 lines
1.3 KiB
Plaintext
59 lines
1.3 KiB
Plaintext
# Contributor: Clayton Craft <clayton@craftyguy.net>
|
|
# Maintainer: Clayton Craft <clayton@craftyguy.net>
|
|
pkgname=ytdl-sub
|
|
pkgver=2024.07.26
|
|
pkgrel=0
|
|
pkgdesc="tool for downloading media with yt-dlp and creating metadata"
|
|
url="https://github.com/jmbannon/ytdl-sub"
|
|
arch="noarch"
|
|
license="GPL-3.0-only"
|
|
depends="
|
|
ffmpeg
|
|
py3-colorama
|
|
py3-mediafile
|
|
py3-mergedeep
|
|
py3-yaml
|
|
yt-dlp-core
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest py3-pytest-cov"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://codeload.github.com/jmbannon/ytdl-sub/tar.gz/refs/tags/$pkgver"
|
|
# tests connect out to the internet
|
|
options="!check"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
|
|
# hardcoded incorrect version
|
|
cat >>src/ytdl_sub/__init__.py <<-EOF
|
|
__pypi_version__ = "$pkgver"
|
|
__local_version__ = "$pkgver"
|
|
EOF
|
|
}
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
2ef68ae0c166a94926d05f858cd95ce2b4e53d36b6b0c02646c352f54ab4a3604b2d0a573d00c2529f850d5467054d625acfa2f161994b15f0ec6243bb458eaf ytdl-sub-2024.07.26.tar.gz
|
|
"
|