net-misc/yt-dlg - 2024.03.19 (guru)

Search

Install

Install this version:

emerge -a =net-misc/yt-dlg-2024.03.19

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-misc/yt-dlg-2024.03.19

Or alternatively:

emerge --autounmask-write -a =net-misc/yt-dlg-2024.03.19

Package Information

Description:
A cross platform front-end GUI of the popular youtube-dl written in wxPython.
Homepage:
https://yt-dlg.github.io/yt-dlg/
License:
public-domain

Ebuild Details

Version EAPI Keywords Slot
2024.03.19 8 ~amd64 0
View Raw Ebuild
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_12 )
inherit desktop distutils-r1 xdg

DESCRIPTION="A cross platform front-end GUI of the popular youtube-dl written in wxPython."
HOMEPAGE="https://yt-dlg.github.io/yt-dlg/"
# Using latest commit from Mars 19, 2024 as of August 5, 2024.
# Latest releases and tags are from 2021 and are probably deprecated and incompatible with current Python versions.
# Same applies for the dependencies of yt-dlp.
SHA="264699bb425efd988523ebb8bbfb8f67d009f884"
SRC_URI="https://github.com/yt-dlg/yt-dlg/archive/${SHA}.tar.gz -> ${P}.gh.tar.gz"

S="${WORKDIR}/${PN}-${SHA}"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64"

IUSE="ffmpeg"

DEPEND="${PYTHON_DEPS}
	>=dev-python/wxpython-4.2.0:*[${PYTHON_USEDEP}]
	net-misc/yt-dlp[${PYTHON_USEDEP}]
	>=dev-python/PyPubSub-4.0.3
	ffmpeg? ( media-video/ffmpeg )
"
RDEPEND="${DEPEND}"

# I don't know how to enable the test phase.
distutils_enable_tests pytest

DOCS=( README.md )

python_test() {
	local tests=( ditem dlist parsers utils widgets )
	local current_test
	for current_test in tests; do
		"${EPYTHON}" "tests/test_${curent_test}.py" || die "Tests fail with ${EPYTHON}"
	done
}

src_install() {
	distutils-r1_src_install
	domenu yt-dlg.desktop
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-misc/yt-dlg | euse -E <flag> -p net-misc/yt-dlg | euse -D <flag> -p net-misc/yt-dlg

Global/Standard Flags

Inherited Eclasses

xdg

Dependencies

DEPEND

	>=dev-python/wxpython-4.2.0:*[]
	net-misc/yt-dlp[]
	>=dev-python/PyPubSub-4.0.3
	ffmpeg? ( media-video/ffmpeg )

RDEPEND

	>=dev-python/wxpython-4.2.0:*[]
	net-misc/yt-dlp[]
	>=dev-python/PyPubSub-4.0.3
	ffmpeg? ( media-video/ffmpeg )

Manifest for 2024.03.19

Type File Size Source URLs
DIST yt-dlg-2024.03.19.gh.tar.gz 1481178 bytes https://github.com/yt-dlg/yt-dlg/archive/264699bb425efd988523ebb8bbfb8f67d009f884.tar.gz