subliminal 1.1

Closes Homebrew/homebrew#47526.

Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
Dominyk Tiller 2015-12-30 12:45:53 +00:00
parent daf1c00c06
commit 5f36344ba2

View file

@ -1,8 +1,8 @@
class Subliminal < Formula
desc "Library to search and download subtitles"
homepage "https://subliminal.readthedocs.org"
url "https://github.com/Diaoul/subliminal/archive/1.0.1.tar.gz"
sha256 "b2db67d6a6d68c3fc5a2fda9ee5831879548c288af61de726cae508d72fc4816"
url "https://github.com/Diaoul/subliminal/archive/1.1.tar.gz"
sha256 "eeb9812c6c7fcb7cdeb051f95d06e336bf776c2c720649f272fa187594ab8b4e"
head "https://github.com/Diaoul/subliminal.git"
bottle do
@ -16,13 +16,18 @@ class Subliminal < Formula
depends_on :python if MacOS.version <= :snow_leopard
resource "pip" do
url "https://pypi.python.org/packages/source/p/pip/pip-7.1.0.tar.gz"
sha256 "d5275ba3221182a5dd1b6bcfbfc5ec277fb399dd23226d6fa018048f7e0f10f2"
url "https://pypi.python.org/packages/source/p/pip/pip-7.1.2.tar.gz"
sha256 "ca047986f0528cfa975a14fb9f7f106271d4e0c3fe1ddced6c1db2e7ae57a477"
end
resource "wsgiref" do
url "https://pypi.python.org/packages/source/w/wsgiref/wsgiref-0.1.2.zip"
sha256 "c7e610c800957046c04c8014aab8cce8f0b9f0495c8cd349e57c1f7cabf40e79"
resource "babelfish" do
url "https://pypi.python.org/packages/source/b/babelfish/babelfish-0.5.5.tar.gz"
sha256 "8380879fa51164ac54a3e393f83c4551a275f03617f54a99d70151358e444104"
end
resource "beautifulsoup4" do
url "https://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-4.4.1.tar.gz"
sha256 "87d4013d0625d4789a4f56b8d79a04d5ce6db1152bb65f1d39744f7709a366b4"
end
resource "chardet" do
@ -30,59 +35,14 @@ class Subliminal < Formula
sha256 "e53e38b3a4afe6d1132de62b7400a4ac363452dc5dfcf8d88e8e0cce663c68aa"
end
resource "guessit" do
url "https://pypi.python.org/packages/source/g/guessit/guessit-0.10.3.tar.gz"
sha256 "d14ea0a2ea3413ec46119ea4d7a91b1f045761cfb3dc262c9dcd545742712dfe"
end
resource "requests" do
url "https://pypi.python.org/packages/source/r/requests/requests-2.7.0.tar.gz"
sha256 "398a3db6d61899d25fd4a06c6ca12051b0ce171d705decd7ed5511517b4bb93d"
resource "click" do
url "https://pypi.python.org/packages/source/c/click/click-6.2.tar.gz"
sha256 "fba0ff70f5ebb4cebbf64c40a8fbc222fb7cf825237241e548354dabe3da6a82"
end
resource "dogpile.cache" do
url "https://pypi.python.org/packages/source/d/dogpile.cache/dogpile.cache-0.5.6.tar.gz"
sha256 "f80544c5555f66cf7b5fc99f15431f3b35f78009bc6b03b58fe1724236bbc57b"
end
resource "beautifulsoup4" do
url "https://pypi.python.org/packages/source/b/beautifulsoup4/beautifulsoup4-4.4.0.tar.gz"
sha256 "fad91da88f69438b9ba939ab1b2cabaa31b1d914f1cccb4bb157a993ed2917f6"
end
resource "click" do
url "https://pypi.python.org/packages/source/c/click/click-4.1.tar.gz"
sha256 "e339ed09f25e2145314c902a870bc959adcb25653a2bd5cc1b48d9f56edf8ed8"
end
resource "enzyme" do
url "https://pypi.python.org/packages/source/e/enzyme/enzyme-0.4.1.tar.gz"
sha256 "f2167fa97c24d1103a94d4bf4eb20f00ca76c38a37499821049253b2059c62bb"
end
resource "pysrt" do
url "https://pypi.python.org/packages/source/p/pysrt/pysrt-1.0.1.tar.gz"
sha256 "5300a1584c8d15a1c49ef8880fa1ef7a4274ce3f24dde83ad581d12d875f6784"
end
resource "stevedore" do
url "https://pypi.python.org/packages/source/s/stevedore/stevedore-1.6.0.tar.gz"
sha256 "dab2aa31ec742f651e6a2fe0429560aebbbe0fb7fc462fa0ff565c8f5ff2ec25"
end
resource "six" do
url "https://pypi.python.org/packages/source/s/six/six-1.9.0.tar.gz"
sha256 "e24052411fc4fbd1f672635537c3fc2330d9481b18c0317695b46259512c91d5"
end
resource "babelfish" do
url "https://pypi.python.org/packages/source/b/babelfish/babelfish-0.5.4.tar.gz"
sha256 "6e4f41f185b30b81232589c10b059546f3320cc440c5987f182ee82ab1778b47"
end
resource "python-dateutil" do
url "https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.4.2.tar.gz"
sha256 "3e95445c1db500a344079a47b171c45ef18f57d188dffdb0e4165c71bea8eb3d"
url "https://pypi.python.org/packages/source/d/dogpile.cache/dogpile.cache-0.5.7.tar.gz"
sha256 "dcf99b09ddf3d8216b1b4378100eb0235619612fb0e6300ba5d74f10962d0956"
end
resource "dogpile.core" do
@ -91,23 +51,48 @@ class Subliminal < Formula
end
resource "argparse" do
url "https://pypi.python.org/packages/source/a/argparse/argparse-1.3.0.tar.gz"
sha256 "b3a79a23d37b5a02faa550b92cbbbebeb4aa1d77e649c3eb39c19abf5262da04"
url "https://pypi.python.org/packages/source/a/argparse/argparse-1.4.0.tar.gz"
sha256 "62b089a55be1d8949cd2bc7e0df0bddb9e028faefc8c32038cc84862aefdd6e4"
end
resource "enzyme" do
url "https://pypi.python.org/packages/source/e/enzyme/enzyme-0.4.1.tar.gz"
sha256 "f2167fa97c24d1103a94d4bf4eb20f00ca76c38a37499821049253b2059c62bb"
end
resource "guessit" do
url "https://pypi.python.org/packages/source/g/guessit/guessit-1.0.2.tar.gz"
sha256 "118ca3e2df5adf1f0b87841924227fbb51b4465fb13407099c7c07588a20eccc"
end
resource "pbr" do
url "https://pypi.python.org/packages/source/p/pbr/pbr-1.3.0.tar.gz"
sha256 "1a6f8d514fc11d2571c75c207d932c106f024f199b5f12d25f8ca022b026c59d"
url "https://pypi.python.org/packages/source/p/pbr/pbr-1.8.1.tar.gz"
sha256 "e2127626a91e6c885db89668976db31020f0af2da728924b56480fc7ccf09649"
end
resource "pyxdg" do
url "https://pypi.python.org/packages/source/p/pyxdg/pyxdg-0.25.tar.gz"
sha256 "81e883e0b9517d624e8b0499eb267b82a815c0b7146d5269f364988ae031279d"
resource "pysrt" do
url "https://pypi.python.org/packages/source/p/pysrt/pysrt-1.0.1.tar.gz"
sha256 "5300a1584c8d15a1c49ef8880fa1ef7a4274ce3f24dde83ad581d12d875f6784"
end
resource "html5lib" do
url "https://pypi.python.org/packages/source/h/html5lib/html5lib-0.999999.tar.gz"
sha256 "e372b66f4997f8e1de970ea755d0a528d7222d2aa9bd55aac078c7ef39b8f6c3"
resource "python-dateutil" do
url "https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.4.2.tar.gz"
sha256 "3e95445c1db500a344079a47b171c45ef18f57d188dffdb0e4165c71bea8eb3d"
end
resource "requests" do
url "https://pypi.python.org/packages/source/r/requests/requests-2.9.1.tar.gz"
sha256 "c577815dd00f1394203fc44eb979724b098f88264a9ef898ee45b8e5e9cf587f"
end
resource "six" do
url "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz"
sha256 "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"
end
resource "stevedore" do
url "https://pypi.python.org/packages/source/s/stevedore/stevedore-1.10.0.tar.gz"
sha256 "f5d689ef38e0ca532d57a03d1ab95e89b17c57f97b58d10c92da94699973779f"
end
# not required by install_requires but provides additional UI when available
@ -135,8 +120,9 @@ class Subliminal < Formula
end
test do
mkdir ".config"
(testpath/".config").mkpath
system "#{bin}/subliminal", "download", "-l", "en",
"--", "The.Big.Bang.Theory.S05E18.HDTV.x264-LOL.mp4"
"The.Big.Bang.Theory.S05E18.HDTV.x264-LOL.mp4"
assert File.exist?("The.Big.Bang.Theory.S05E18.HDTV.x264-LOL.en.srt")
end
end