From c261c8da4fdf299a3f4fce77ebc00ea2ad022b9a Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Sat, 17 Feb 2018 22:28:14 -0800 Subject: [PATCH] mps-youtube 0.2.8 Closes #24262. Signed-off-by: ilovezfs --- Formula/mps-youtube.rb | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/Formula/mps-youtube.rb b/Formula/mps-youtube.rb index f8d0787a10..56e291d623 100644 --- a/Formula/mps-youtube.rb +++ b/Formula/mps-youtube.rb @@ -3,9 +3,8 @@ class MpsYoutube < Formula desc "Terminal based YouTube player and downloader" homepage "https://github.com/mps-youtube/mps-youtube" - url "https://github.com/mps-youtube/mps-youtube/archive/v0.2.7.1.tar.gz" - sha256 "917958ab02f8dace9c84974f510bd8838f905814c1a05a91fb1a38d37d19f0e8" - revision 4 + url "https://github.com/mps-youtube/mps-youtube/archive/v0.2.8.tar.gz" + sha256 "d5f2c4bc1f57f0566242c4a0a721a5ceaa6d6d407f9d6dd29009a714a0abec74" bottle do cellar :any_skip_relocation @@ -20,17 +19,23 @@ class MpsYoutube < Formula depends_on "mplayer" => :optional resource "pafy" do - url "https://files.pythonhosted.org/packages/23/74/0e32a671b445107f34fa785ea2ac3658b0e80aef5446538a6181eba7c2e7/pafy-0.5.3.1.tar.gz" - sha256 "35e64ff495b5d62f31f65a31ac0ca6dc1ab39e1dbde4d07b1e04845a52eceda8" + url "https://files.pythonhosted.org/packages/41/cb/ec840c79942fb0788982963b61a361ecd10e4e58ad3dcaef4f0e809ce2fe/pafy-0.5.4.tar.gz" + sha256 "e842dc589a339a870b5869cc3802f2e95824edf347f65128223cd5ebdff21024" end resource "youtube_dl" do - url "https://files.pythonhosted.org/packages/38/e3/4e3bbc6cdc7a51030c5e3a130c056f6e5fd78f12793f7797f0ccf092b2e3/youtube_dl-2017.5.18.1.tar.gz" - sha256 "b4876a526191bd7264fcee9cb08d9de921dbfe823852cc9c343e5fb031ffad08" + url "https://files.pythonhosted.org/packages/bb/6c/d7af4a0008fee9c9eccd2dc7d4b6dba008f2b31c19c7003f5af98560188e/youtube_dl-2018.2.11.tar.gz" + sha256 "80da352d7da4cff7e591a8ab70262fceceaf561b86ec72c0dc86891b31e07090" end def install - virtualenv_install_with_resources + venv = virtualenv_create(libexec, "python3") + + ["youtube_dl", "pafy"].each do |r| + venv.pip_install resource(r) + end + + venv.pip_install_and_link buildpath end test do