haruhi-dl 2021.4.1
Closes #74250. Signed-off-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
ade3fe0845
commit
f27b38e5a9
|
@ -0,0 +1,27 @@
|
|||
class HaruhiDl < Formula
|
||||
include Language::Python::Virtualenv
|
||||
|
||||
desc "Fork of youtube-dl, focused on bringing a fast, steady stream of updates"
|
||||
homepage "https://haruhi.download"
|
||||
url "https://files.pythonhosted.org/packages/8e/65/6dd176ef1ceaff2dbe6c3205aea97355a23ac5dc26d57de3bd8af5a0206c/haruhi_dl-2021.4.1.tar.gz"
|
||||
sha256 "0854dc9c61ad3b639fb90f87545eb12a92fc3ce499eb5848f844ec37aa28d591"
|
||||
license "LGPL-3.0-or-later"
|
||||
|
||||
depends_on "python@3.9"
|
||||
|
||||
def install
|
||||
virtualenv_install_with_resources
|
||||
end
|
||||
|
||||
test do
|
||||
# History of homebrew-core (video)
|
||||
haruhi_output = shell_output("#{bin}/haruhi-dl --simulate https://www.youtube.com/watch?v=pOtd1cbOP7k")
|
||||
|
||||
expected_output = <<~EOS
|
||||
[youtube] pOtd1cbOP7k: Downloading webpage
|
||||
[youtube] pOtd1cbOP7k: Downloading MPD manifest
|
||||
EOS
|
||||
|
||||
assert_equal expected_output, haruhi_output
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue