yt_dlp: switch to Python 3.9. (#7684)

This commit is contained in:
OscarL
2022-12-28 11:03:26 -03:00
committed by GitHub
parent 5543e5f83c
commit ed207c4b3d

View File

@@ -9,7 +9,7 @@ to download these videos by itself."
HOMEPAGE="https://github.com/yt-dlp/yt-dlp"
COPYRIGHT="2006-2022 youtube-dl and yt-dlp contributors"
LICENSE="Unlicense"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/yt-dlp/yt-dlp/releases/download/$portVersion/yt-dlp.tar.gz"
SOURCE_FILENAME="yt-dlp-$portVersion.tar.gz"
CHECKSUM_SHA256="51fa055912c7fc742a882ff58236bd25b39055b98168a3563ed17cc575c3c3ae"
@@ -24,7 +24,7 @@ PROVIDES="
REQUIRES="
haiku
ffmpeg_tools
cmd:python3.7
cmd:python3
"
BUILD_REQUIRES="
@@ -36,8 +36,8 @@ BUILD_PREREQUIRES="
cmd:zip
"
PYTHON_PACKAGES=(python3)
PYTHON_VERSIONS=(3.7)
PYTHON_PACKAGES=(python39)
PYTHON_VERSIONS=(3.9)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
@@ -97,6 +97,6 @@ INSTALL()
TEST()
{
export PYTHON=/system/bin/python3.7
export PYTHON=/system/bin/python3
make offlinetest
}