media-sound/ytm-player: add 1.5.2

* Fix yt-dlp dep. QA

Signed-off-by: dsaf <ghostyn678+git@gmail.com>
This commit is contained in:
dsaf
2026-03-17 01:54:47 -03:00
parent 24eb827a15
commit 18f6d19af5
4 changed files with 60 additions and 2 deletions

View File

@@ -1 +1,2 @@
DIST ytm-player-1.5.1.tar.gz 332414 BLAKE2B acb053ba9b524204f2f162bbb78b7e3dcaf6d44da75b546be8d89efc80a0aeb7b653e90db3719e16613ad845bb9b547d3e79753faba43625eeff8871eb385f82 SHA512 9d7b1c517ffc8f1892955695ddda2956deea3ba49770ae782a7c916442c31044a98ba57531762b6f4d46a7a1adb4ad15c56ee04658388406523ab1de560b38a9
DIST ytm-player-1.5.2.tar.gz 332064 BLAKE2B 65a403b31b0f5cf47110f4fc4584bda70e369c663c07d66827fc83bab1409c371ffec5fb31b6d710777d2ac28c20495429d7a8666b5887efdbf6e16ed5467649 SHA512 e7acb42b830b1d631fa7cde39545fb421981cf758b226a57e3ff26b384d624839e11558da04d2cf5a8a4c1a6056489d03dff24d70e581247c62dbbcb8e9961d3

View File

@@ -24,7 +24,7 @@ SLOT="0"
RDEPEND="
media-video/mpv
net-misc/yt-dlp
>=net-misc/yt-dlp-2025.01.12[${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}]

View File

@@ -0,0 +1,57 @@
# 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..13} )
inherit distutils-r1 optfeature
DESCRIPTION="Full-featured YouTube Music TUI client with vim-style navigation"
HOMEPAGE="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"
RDEPEND="
media-video/mpv
>=net-misc/yt-dlp-2025.01.12[${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}]
"
BDEPEND="
test? (
dev-python/anyascii[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=( pytest-asyncio )
distutils_enable_tests pytest
pkg_postinst() {
optfeature "MPRIS media key support" dev-python/dbus-next
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
}

View File

@@ -24,7 +24,7 @@ SLOT="0"
RDEPEND="
media-video/mpv
net-misc/yt-dlp
>=net-misc/yt-dlp-2025.01.12[${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}]