Merge pull request #136082 from marsam/update-ytmdl

ytmdl: 2021.06.26 -> 2021.08.01
This commit is contained in:
Mario Rodas 2021-09-01 07:40:19 -05:00 committed by GitHub
commit 51fe8301c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 24 deletions

View File

@ -0,0 +1,27 @@
{ lib, buildPythonPackage, pythonOlder, fetchPypi, httpx }:
buildPythonPackage rec {
pname = "youtube-search-python";
version = "1.4.7";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "7f93d9ecfd9b965dc93782d8174b1c1888f8900e2a303254037ba34e1d0ebed4";
};
propagatedBuildInputs = [ httpx ];
pythonImportsCheck = [ "youtubesearchpython" ];
# project has no tests
doCheck = false;
meta = with lib; {
description = "Search for YouTube videos, channels & playlists & get video information using link WITHOUT YouTube Data API v3";
homepage = "https://github.com/alexmercerind/youtube-search-python";
license = licenses.mit;
maintainers = [ maintainers.marsam ];
};
}

View File

@ -1,44 +1,32 @@
{ lib { lib
, fetchFromGitHub , python3Packages
, python3
, fetchpatch
, ffmpeg , ffmpeg
}: }:
python3.pkgs.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "ytmdl"; pname = "ytmdl";
version = "2021.06.26"; version = "2021.08.01";
src = fetchFromGitHub { src = python3Packages.fetchPypi {
owner = "deepjyoti30"; inherit pname;
repo = pname; version = builtins.replaceStrings [ ".0" ] [ "." ] version;
rev = version; sha256 = "f5ef23dcba89aaf2307baf4ffc2326dc5c02324f646e5e5748219ed328202af4";
sha256 = "1jpd5zhqg2m9vjjjw4mgzb594q1v1pq1yl65py6kw42bq9w5yl5p";
}; };
patches = [
# Fixes https://github.com/deepjyoti30/ytmdl/issues/188
# Only needed until the next major release after 2021.06.26
(fetchpatch {
url = "https://github.com/deepjyoti30/ytmdl/commit/37ba821d9692249c1fa563505cf60bd11b8e209e.patch";
includes = [ "bin/ytmdl" ];
sha256 = "sha256-VqtthpUL0Oub3DK7tSvAnemOzPPTcLvXXeebZIGOgdc=";
})
];
postPatch = '' postPatch = ''
substituteInPlace setup.py \ substituteInPlace setup.py \
--replace "bs4" "beautifulsoup4" --replace "bs4" "beautifulsoup4" \
--replace "/etc/bash_completion.d" "share/bash-completion/completions" \
--replace "/usr/share/zsh/functions/Completion/Unix" "share/zsh/site-functions"
''; '';
propagatedBuildInputs = with python3Packages; [
propagatedBuildInputs = with python3.pkgs; [
ffmpeg-python ffmpeg-python
musicbrainzngs musicbrainzngs
rich rich
simber simber
pydes pydes
youtube-search youtube-search-python
unidecode unidecode
pyxdg pyxdg
downloader-cli downloader-cli
@ -48,6 +36,7 @@ python3.pkgs.buildPythonApplication rec {
pysocks pysocks
youtube-dl youtube-dl
ytmusicapi ytmusicapi
spotipy
]; ];
makeWrapperArgs = [ makeWrapperArgs = [

View File

@ -9610,6 +9610,8 @@ in {
youtube-search = callPackage ../development/python-modules/youtube-search { }; youtube-search = callPackage ../development/python-modules/youtube-search { };
youtube-search-python = callPackage ../development/python-modules/youtube-search-python { };
youtube-transcript-api = callPackage ../development/python-modules/youtube-transcript-api { }; youtube-transcript-api = callPackage ../development/python-modules/youtube-transcript-api { };
yowsup = callPackage ../development/python-modules/yowsup { }; yowsup = callPackage ../development/python-modules/yowsup { };