homebrew-core/Formula/watson.rb

84 lines
3.9 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 2
sha256 cellar: :any_skip_relocation, arm64_ventura: "06371cfae253042603d91c62b7e938fabd0697d0db4718dcaa44959e044937c2"
sha256 cellar: :any_skip_relocation, arm64_monterey: "95386e23ea6f1b4876af2b87d196255aa307e6a8090d5aeebcab02d986062577"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "47ad6fbb3e57adb4e58ef03bb164e277670ac61e2da32ebadb2446bf1438e0a1"
sha256 cellar: :any_skip_relocation, ventura: "76566a7a1587286ada92441587a0c12f177d80ddfd69b212b331712b28d725a2"
sha256 cellar: :any_skip_relocation, monterey: "10618e9c5018e2e12e59a995e21f14b0455e27bba8f1dcffd4b9d5dcd7b094dc"
sha256 cellar: :any_skip_relocation, big_sur: "d81ac3575281d13010eee894825249042bce14f6e93e4a09aa01d79ffc9b620a"
sha256 cellar: :any_skip_relocation, x86_64_linux: "6064b698f6abe3aba0dba7027ed40a022dc6d484b362e4388dd391c0aa3db228"
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/37/f7/2b1b0ec44fdc30a3d31dfebe52226be9ddc40cd6c0f34ffc8923ba423b69/certifi-2022.12.7.tar.gz"
sha256 "35824b4c3a97115964b408844d64aa14db1cc518f6562e8d7261699d1350a9e3"
end
resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/96/d7/1675d9089a1f4677df5eb29c3f8b064aa1e70c1251a0a8a127803158942d/charset-normalizer-3.0.1.tar.gz"
sha256 "ebea339af930f8ca5d7a699b921106c6e29c617fe9606fa7baa043c1cdae326f"
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/9d/ee/391076f5937f0a8cdf5e53b701ffc91753e87b07d66bae4a09aa671897bf/requests-2.28.2.tar.gz"
sha256 "98b1b2782e3c6c4904938b84c0eb932721069dfdb9134313beff7c83c2df24bf"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/c5/52/fe421fb7364aa738b3506a2d99e4f3a56e079c0a798e9f4fa5e14c60922f/urllib3-1.26.14.tar.gz"
sha256 "076907bf8fd355cde77728471316625a4d2f7e713c125f51953bb5b3eecf4f72"
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