class Watson < Formula include Language::Python::Virtualenv desc "Command-line tool to track (your) time" homepage "https://tailordev.github.io/Watson/" url "https://files.pythonhosted.org/packages/3c/bc/ee05f1f2d46f79d069930e0717e6dd6ede555b4d564eaae42273570e8806/td-watson-1.7.0.tar.gz" sha256 "249313996751f32f38817d424cbf8d74956461df1439f0ee3a962fcc3c77225d" head "https://github.com/TailorDev/Watson.git" bottle do cellar :any_skip_relocation sha256 "85f3a2416c8198a9c24f49546beab3adb44ed8e51d7a4663c84785b684678a9f" => :mojave sha256 "cd68c535214d7f3bfcb5fdbdc64001769c77a56c491f2dd02f1aeadcca608504" => :high_sierra sha256 "4f090c12f582739483574f6f925b7167b6e42f272c0d1a062dba6e900eabb3cd" => :sierra end depends_on "python" resource "arrow" do url "https://files.pythonhosted.org/packages/0e/29/a080c566b078dd72ac486991c94ec2f3dd508ac9ec8c254c9dbe30dcfbb2/arrow-0.14.2.tar.gz" sha256 "41be7ea4c53c2cf57bf30f2d614f60c411160133f7a0a8c49111c30fb7e725b5" end resource "backports.functools_lru_cache" do url "https://files.pythonhosted.org/packages/57/d4/156eb5fbb08d2e85ab0a632e2bebdad355798dece07d4752f66a8d02d1ea/backports.functools_lru_cache-1.5.tar.gz" sha256 "9d98697f088eb1b0fa451391f91afb5e3ebde16bbdb272819fd091151fda4f1a" end resource "certifi" do url "https://files.pythonhosted.org/packages/c5/67/5d0548226bcc34468e23a0333978f0e23d28d0b3f0c71a151aef9c3f7680/certifi-2019.6.16.tar.gz" sha256 "945e3ba63a0b9f577b1395204e13c3a231f9bc0223888be653286534e5873695" end resource "chardet" do url "https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz" sha256 "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae" end resource "click" do url "https://files.pythonhosted.org/packages/f8/5c/f60e9d8a1e77005f664b76ff8aeaee5bc05d0a91798afd7f53fc998dbc47/Click-7.0.tar.gz" sha256 "5b94b49521f6456670fdb30cd82a4eca9412788a93fa6dd6df72c94d5a8ff2d7" end resource "idna" do url "https://files.pythonhosted.org/packages/ad/13/eb56951b6f7950cadb579ca166e448ba77f9d24efc03edd7e55fa57d04b7/idna-2.8.tar.gz" sha256 "c357b3f628cf53ae2c4c05627ecc484553142ca23264e593d327bcde5e9c3407" end resource "python-dateutil" do url "https://files.pythonhosted.org/packages/ad/99/5b2e99737edeb28c71bcbec5b5dda19d0d9ef3ca3e92e3e925e7c0bb364c/python-dateutil-2.8.0.tar.gz" sha256 "c89805f6f4d64db21ed966fda138f8a5ed7a4fdbc1a8ee329ce1b74e3c74da9e" end resource "requests" do url "https://files.pythonhosted.org/packages/01/62/ddcf76d1d19885e8579acb1b1df26a852b03472c0e46d2b959a714c90608/requests-2.22.0.tar.gz" sha256 "11e007a8a2aa0323f5a921e9e6a2d7e4e67d9877e85773fba9ba6419025cbeb4" end resource "six" do url "https://files.pythonhosted.org/packages/dd/bf/4138e7bfb757de47d1f4b6994648ec67a51efe58fa907c1e11e350cddfca/six-1.12.0.tar.gz" sha256 "d16a0141ec1a18405cd4ce8b4613101da75da0e9a7aec5bdd4fa804d0e0eba73" end resource "urllib3" do url "https://files.pythonhosted.org/packages/4c/13/2386233f7ee40aa8444b47f7463338f3cbdf00c316627558784e3f542f07/urllib3-1.25.3.tar.gz" sha256 "dbe59173209418ae49d485b87d1681aefa36252ee85884c31346debd19463232" end def install virtualenv_install_with_resources bash_completion.install "watson.completion" => "watson" zsh_completion.install "watson.zsh-completion" => "_watson" end test do system "#{bin}/watson", "start", "foo", "+bar" system "#{bin}/watson", "status" system "#{bin}/watson", "stop" system "#{bin}/watson", "log" end end