homebrew-core/Formula/watson.rb

85 lines
4.1 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
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_ventura: "4942b60dda033a8a0867488ff85626dba42680cbe6a41ec5f03e61589ddec19c"
sha256 cellar: :any_skip_relocation, arm64_monterey: "438c799cc494f72b46aadd5e67c38b699191a98af3c4f204c1bdd99ec90d52d8"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "a6811ee20faa202e189dffb5cb5c8126c9c25f1241c949f8717cfb004c600966"
sha256 cellar: :any_skip_relocation, ventura: "05a888be29b68de6b5a68c213b295bb0341dc13d64ce168b031d1bee5a71e284"
sha256 cellar: :any_skip_relocation, monterey: "2cd983b76a69dfdf0c14235db263bacec84bd9dac318fea9e8363ae5b36c219f"
sha256 cellar: :any_skip_relocation, big_sur: "ae4716d2aeea0b881daf46c1d5039ef6898c6b68cc47634012afdc1f64955db8"
sha256 cellar: :any_skip_relocation, catalina: "5d4054b8795c8700aa718c1af81bd4285ad408cae8a1b9b789b24a7f3a8d0556"
sha256 cellar: :any_skip_relocation, x86_64_linux: "68f12f8079faa2d892084538c05577a7a58785f7adcef81aa4db39fbe4396661"
end
depends_on "python@3.11"
depends_on "six"
resource "arrow" do
url "https://files.pythonhosted.org/packages/7f/c0/c601ea7811f422700ef809f167683899cdfddec5aa3f83597edf97349962/arrow-1.2.3.tar.gz"
sha256 "3934b30ca1b9f292376d9db15b19446088d12ec58629bc3f0da28fd55fb633a1"
end
resource "certifi" do
url "https://files.pythonhosted.org/packages/cb/a4/7de7cd59e429bd0ee6521ba58a75adaec136d32f91a761b28a11d8088d44/certifi-2022.9.24.tar.gz"
sha256 "0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14"
end
resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/a1/34/44964211e5410b051e4b8d2869c470ae8a68ae274953b1c7de6d98bbcf94/charset-normalizer-2.1.1.tar.gz"
sha256 "5a3d016c7c547f69d6f81fb0db9449ce888b418b5b9952cc5e6e66843e9dd845"
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/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438/idna-3.4.tar.gz"
sha256 "814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"
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/a5/61/a867851fd5ab77277495a8709ddda0861b28163c4613b011bc00228cc724/requests-2.28.1.tar.gz"
sha256 "7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/b2/56/d87d6d3c4121c0bcec116919350ca05dc3afd2eeb7dc88d07e8083f8ea94/urllib3-1.26.12.tar.gz"
sha256 "3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e"
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