56 lines
2.7 KiB
Ruby
56 lines
2.7 KiB
Ruby
class Livestreamer < Formula
|
|
include Language::Python::Virtualenv
|
|
|
|
desc "Pipes video from streaming services into a player such as VLC"
|
|
homepage "https://livestreamer.io/"
|
|
url "https://files.pythonhosted.org/packages/ee/d6/efbe3456160a2c62e3dd841c5d9504d071c94449a819148bb038b50d862a/livestreamer-1.12.2.tar.gz"
|
|
sha256 "ef3e743d0cabc27d8ad906c356e74370799e25ba46c94d3b8d585af77a258de0"
|
|
license "BSD-2-Clause"
|
|
revision 4
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "76193bcb73c7cfb124eb5d4722ef470b5c0b494ffc8a4434f985e0d30b64d838"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "76193bcb73c7cfb124eb5d4722ef470b5c0b494ffc8a4434f985e0d30b64d838"
|
|
sha256 cellar: :any_skip_relocation, monterey: "2532c8413596ff667d0ec23f772f79c5e53804e956a86b48d7506955bc566c54"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "2532c8413596ff667d0ec23f772f79c5e53804e956a86b48d7506955bc566c54"
|
|
sha256 cellar: :any_skip_relocation, catalina: "2532c8413596ff667d0ec23f772f79c5e53804e956a86b48d7506955bc566c54"
|
|
sha256 cellar: :any_skip_relocation, mojave: "2532c8413596ff667d0ec23f772f79c5e53804e956a86b48d7506955bc566c54"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "157200d22da219983522e2cbb204024c0275d5be1e61619017a20f0360a52bfa"
|
|
end
|
|
|
|
depends_on "python@3.10"
|
|
|
|
resource "certifi" do
|
|
url "https://files.pythonhosted.org/packages/b8/e2/a3a86a67c3fc8249ed305fc7b7d290ebe5e4d46ad45573884761ef4dea7b/certifi-2020.4.5.1.tar.gz"
|
|
sha256 "51fcb31174be6e6664c5f69e3e1691a2d72a1a12e90f872cbdb1567eb47b6519"
|
|
end
|
|
|
|
resource "chardet" do
|
|
url "https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz"
|
|
sha256 "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"
|
|
end
|
|
|
|
resource "idna" do
|
|
url "https://files.pythonhosted.org/packages/cb/19/57503b5de719ee45e83472f339f617b0c01ad75cba44aba1e4c97c2b0abd/idna-2.9.tar.gz"
|
|
sha256 "7588d1c14ae4c77d74036e8c22ff447b26d0fde8f007354fd48a7814db15b7cb"
|
|
end
|
|
|
|
resource "requests" do
|
|
url "https://files.pythonhosted.org/packages/f5/4f/280162d4bd4d8aad241a21aecff7a6e46891b905a4341e7ab549ebaf7915/requests-2.23.0.tar.gz"
|
|
sha256 "b3f43d496c6daba4493e7c431722aeb7dbc6288f52a6e04e7b6023b0247817e6"
|
|
end
|
|
|
|
resource "urllib3" do
|
|
url "https://files.pythonhosted.org/packages/05/8c/40cd6949373e23081b3ea20d5594ae523e681b6f472e600fbc95ed046a36/urllib3-1.25.9.tar.gz"
|
|
sha256 "3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527"
|
|
end
|
|
|
|
def install
|
|
virtualenv_install_with_resources
|
|
end
|
|
|
|
test do
|
|
assert_match version.to_s, shell_output("#{bin}/livestreamer --version 2>&1")
|
|
end
|
|
end
|