Merge pull request #222381 from fgaz/yewtube/2.10.1

yewtube: 2.9.2 -> 2.10.1
This commit is contained in:
Francesco Gazzetta 2023-03-25 16:09:58 +00:00 committed by GitHub
commit 20e68dd6be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,13 +2,13 @@
python3Packages.buildPythonApplication rec {
pname = "yewtube";
version = "2.9.2";
version = "2.10.1";
src = fetchFromGitHub {
owner = "iamtalhaasghar";
owner = "mps-youtube";
repo = "yewtube";
rev = "refs/tags/v${version}";
hash = "sha256-5+0OaoUan9IFEqtMvpvtkfpd7IbFJhG52oROER5TY20=";
hash = "sha256-1qYHgMp9OZQuKDycvVwp0ADvF8xNY668JvRMVIE/dko=";
};
postPatch = ''
@ -16,8 +16,6 @@ python3Packages.buildPythonApplication rec {
substituteInPlace mps_youtube/__init__.py \
--replace "from pip._vendor import pkg_resources" "" \
--replace "__version__ =" "__version__ = '${version}' #"
# https://github.com/iamtalhaasghar/yewtube/pull/105
sed -ie '/pyreadline/d' requirements.txt
'';
propagatedBuildInputs = with python3Packages; [
@ -25,6 +23,7 @@ python3Packages.buildPythonApplication rec {
requests
youtube-search-python
yt-dlp
pylast
];
checkInputs = with python3Packages; [
@ -41,7 +40,7 @@ python3Packages.buildPythonApplication rec {
meta = with lib; {
description = "Terminal based YouTube player and downloader, forked from mps-youtube";
homepage = "https://github.com/iamtalhaasghar/yewtube";
homepage = "https://github.com/mps-youtube/yewtube";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fgaz koral ];
};