homebrew-core/Formula/goolabs.rb

60 lines
2.8 KiB
Ruby

class Goolabs < Formula
include Language::Python::Virtualenv
desc "Command-line tool for morphologically analyzing Japanese language"
homepage "https://pypi.python.org/pypi/goolabs"
url "https://files.pythonhosted.org/packages/ce/86/2d3b5bd85311ee3a7ae7a661b3619095431503cd0cae03048c646b700cad/goolabs-0.4.0.tar.gz"
sha256 "4f768a5b98960c507f5ba4e1ca14d45e3139388669148a2750d415c312281527"
revision 5
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "410a06b01f5b4290eee224c194542e2a940d51da76a52842c868e777b7c76431"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "410a06b01f5b4290eee224c194542e2a940d51da76a52842c868e777b7c76431"
sha256 cellar: :any_skip_relocation, monterey: "629ee1b046edc2d3fc0f706baf9fc083110bb2b7412d52323d70b62d303d3198"
sha256 cellar: :any_skip_relocation, big_sur: "629ee1b046edc2d3fc0f706baf9fc083110bb2b7412d52323d70b62d303d3198"
sha256 cellar: :any_skip_relocation, catalina: "629ee1b046edc2d3fc0f706baf9fc083110bb2b7412d52323d70b62d303d3198"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2f827cd3c849729a36cb650642be1e1129ba84e06598e20ae8463621e2d8ceac"
end
depends_on "python@3.10"
depends_on "six"
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 "idna" do
url "https://files.pythonhosted.org/packages/62/08/e3fc7c8161090f742f504f40b1bccbfc544d4a4e09eb774bf40aafce5436/idna-3.3.tar.gz"
sha256 "9d643ff0a55b762d5cdb124b8eaa99c66322e2157b69160bc32796e824360e6d"
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
end
test do
assert_match "Usage: goolabs morph", shell_output("#{bin}/goolabs morph test 2>&1", 2)
end
end