homebrew-core/Formula/watson.rb

82 lines
3.8 KiB
Ruby

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/a9/61/868892a19ad9f7e74f9821c259702c3630138ece45bab271e876b24bb381/td-watson-2.1.0.tar.gz"
sha256 "204384dc04653e0dbe8f833243bb833beda3d79b387fe173bfd33faecdd087c8"
license "MIT"
head "https://github.com/TailorDev/Watson.git", branch: "master"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "bf59df6c899328b2efd4e341c0840d359b341948e53576acd881ff8bc8d1d214"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d8f58baf42db5b7b9dc02052c30234173e4d77dac0acefd4123ef72f4f4d8ceb"
sha256 cellar: :any_skip_relocation, monterey: "06be8301a6b63675b6649fc1e44961e25818f85e1e98ce4abb27ac24887ba3af"
sha256 cellar: :any_skip_relocation, big_sur: "60452a832b845cba078755e4aa7b45cc1e37cd50f7facd129d1b66e3d212f870"
sha256 cellar: :any_skip_relocation, catalina: "b648a83b86785cb2f24836e838506deac85d3c2a5d653cca75f0df05c5b502b7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "975140111d0e327628bf5c8173ab07d4d9839284efc29be302658e29b3e03084"
end
depends_on "python@3.10"
depends_on "six"
resource "arrow" do
url "https://files.pythonhosted.org/packages/48/28/30a5748af715b0ab9c2b81cf08bd9e261e47a6261e247553afb7f6421b24/arrow-1.2.2.tar.gz"
sha256 "05caf1fd3d9a11a1135b2b6f09887421153b94558e5ef4d090b567b47173ac2b"
end
resource "certifi" do
url "https://files.pythonhosted.org/packages/6c/ae/d26450834f0acc9e3d1f74508da6df1551ceab6c2ce0766a593362d6d57f/certifi-2021.10.8.tar.gz"
sha256 "78884e7c1d4b00ce3cea67b44566851c4343c120abd683433ce934a68ea58872"
end
resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/56/31/7bcaf657fafb3c6db8c787a865434290b726653c912085fbd371e9b92e1c/charset-normalizer-2.0.12.tar.gz"
sha256 "2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597"
end
resource "click" do
url "https://files.pythonhosted.org/packages/59/87/84326af34517fca8c58418d148f2403df25303e02736832403587318e9e8/click-8.1.3.tar.gz"
sha256 "7682dc8afb30297001674575ea00d1814d808d6a36af415a82bd481d37ba7b8e"
end
resource "click-didyoumean" do
url "https://files.pythonhosted.org/packages/2f/a7/822fbc659be70dcb75a91fb91fec718b653326697d0e9907f4f90114b34f/click-didyoumean-0.3.0.tar.gz"
sha256 "f184f0d851d96b6d29297354ed981b7dd71df7ff500d82fa6d11f0856bee8035"
end
resource "idna" do
url "https://files.pythonhosted.org/packages/62/08/e3fc7c8161090f742f504f40b1bccbfc544d4a4e09eb774bf40aafce5436/idna-3.3.tar.gz"
sha256 "9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
end
resource "requests" do
url "https://files.pythonhosted.org/packages/60/f3/26ff3767f099b73e0efa138a9998da67890793bfa475d8278f84a30fec77/requests-2.27.1.tar.gz"
sha256 "68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/1b/a5/4eab74853625505725cefdf168f48661b2cd04e7843ab836f3f63abf81da/urllib3-1.26.9.tar.gz"
sha256 "aabaf16477806a5e1dd19aa41f8c2b7950dd3c746362d7e3223dbe6de6ac448e"
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