media-sound/ytm-player - 9999 (guru)

Search

Install

Install this version:

emerge -a =media-sound/ytm-player-9999

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

autounmask =media-sound/ytm-player-9999

Or alternatively:

emerge --autounmask-write -a =media-sound/ytm-player-9999

Package Information

Description:
Full-featured YouTube Music TUI client with vim-style navigation
Homepage:
https://ytm-player.com https://github.com/peternaame-boop/ytm-player
License:
MIT

Ebuild Details

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

EAPI=8

DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{12..14} )

inherit distutils-r1 optfeature

DESCRIPTION="Full-featured YouTube Music TUI client with vim-style navigation"
HOMEPAGE="
	https://ytm-player.com
	https://github.com/peternaame-boop/ytm-player
"

if [[ ${PV} == *9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/peternaame-boop/ytm-player.git"
else
	SRC_URI="https://github.com/peternaame-boop/ytm-player/archive/v${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
fi

LICENSE="MIT"
SLOT="0"

DOCS=(
	{README,CONTRIBUTING,CHANGELOG,SECURITY}.md
	docs/
)

RDEPEND="
	media-video/mpv
	>=net-misc/yt-dlp-2026.08.19[${PYTHON_USEDEP}]
	>=dev-python/aiosqlite-0.20.0[${PYTHON_USEDEP}]
	>=dev-python/click-8.1.0[${PYTHON_USEDEP}]
	>=dev-python/python-mpv-1.0.0[${PYTHON_USEDEP}]
	>=dev-python/pillow-10.0[${PYTHON_USEDEP}]
	>=dev-python/textual-7.0.0[${PYTHON_USEDEP}]
	>=dev-python/ytmusicapi-1.11.0[${PYTHON_USEDEP}]
	>=dev-python/dbus-fast-5.0.0[${PYTHON_USEDEP}]
	>=dev-python/packaging-21.0[${PYTHON_USEDEP}]
"

BDEPEND="
	test? (
		>=dev-python/anyascii-0.3.0[${PYTHON_USEDEP}]
		>=dev-python/responses-0.25.0[${PYTHON_USEDEP}]
	)
"

EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest

pkg_postinst() {
	optfeature "last.fm scrobbling" dev-python/pylast
	optfeature "Discord rich presence" dev-python/pypresence
	optfeature "spotify playlist import" dev-python/spotipy # spotifyscraper & thefuzz are not packaged
	optfeature "lyrics transliteration to ASCII" dev-python/anyascii
}

python_test() {
	# The default portage tempdir is too long for AF_UNIX sockets
	local -x TMPDIR=/tmp
	epytest
}

Inherited Eclasses

Dependencies

RDEPEND

	media-video/mpv
	>=net-misc/yt-dlp-2026.08.19[]
	>=dev-python/aiosqlite-0.20.0[]
	>=dev-python/click-8.1.0[]
	>=dev-python/python-mpv-1.0.0[]
	>=dev-python/pillow-10.0[]
	>=dev-python/textual-7.0.0[]
	>=dev-python/ytmusicapi-1.11.0[]
	>=dev-python/dbus-fast-5.0.0[]
	>=dev-python/packaging-21.0[]

BDEPEND

	test? (
		>=dev-python/anyascii-0.3.0[]
		>=dev-python/responses-0.25.0[]
	)