85 lines
4.1 KiB
Ruby
85 lines
4.1 KiB
Ruby
class RichCli < Formula
|
|
include Language::Python::Virtualenv
|
|
|
|
desc "Command-line toolbox for fancy output in the terminal"
|
|
homepage "https://github.com/textualize/rich-cli"
|
|
url "https://files.pythonhosted.org/packages/ca/55/e35962573948a148a4f63416d95d25fe75feb06d9ae2f9bb35adc416f894/rich-cli-1.8.0.tar.gz"
|
|
sha256 "7f99ed213fb18c25999b644335f74d2be621a3a68593359e7fc62e95fe7e9a8a"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
rebuild 3
|
|
sha256 cellar: :any_skip_relocation, arm64_ventura: "f4492d8c928ebda3b6e86cb46e6197d208a72b85faca96758a72de4e29d055e9"
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "37bf0cd19fa25cbf319c0e4c56e816d5a4c68903ed2d60d064b7ac1f974d83ab"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "cf5026209eaaf4d6461189265e3ee44e69dd2c5b9bb368c6c96145ce5fd43f7a"
|
|
sha256 cellar: :any_skip_relocation, ventura: "06803a17b9844bcee518b0a5ae5cbb15c0b480a0298a1332217266903eff879d"
|
|
sha256 cellar: :any_skip_relocation, monterey: "8e2d65735999bfee2e7dd163011fbd3772dc235cbd33ae811eb10e9a0c088a3f"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "9f522aed4a64c53bd7847489880433e42c4a0bf47623ba004f2993953c56fd4e"
|
|
sha256 cellar: :any_skip_relocation, catalina: "daeb78e1a385242712c3dcdc8aaa43437ed2051512d14b70e640005d242bb4f3"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "3a6f53185a0a1a31324f185f763bf6cf71a7e67b2fdd5a5515374083daab8735"
|
|
end
|
|
|
|
depends_on "docutils"
|
|
depends_on "pygments"
|
|
depends_on "python@3.11"
|
|
|
|
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 "commonmark" do
|
|
url "https://files.pythonhosted.org/packages/60/48/a60f593447e8f0894ebb7f6e6c1f25dafc5e89c5879fdc9360ae93ff83f0/commonmark-0.9.1.tar.gz"
|
|
sha256 "452f9dc859be7f06631ddcb328b6919c67984aca654e5fefb3914d54691aed60"
|
|
end
|
|
|
|
resource "idna" do
|
|
url "https://files.pythonhosted.org/packages/8b/e1/43beb3d38dba6cb420cefa297822eac205a277ab43e5ba5d5c46faf96438/idna-3.4.tar.gz"
|
|
sha256 "814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"
|
|
end
|
|
|
|
resource "requests" do
|
|
url "https://files.pythonhosted.org/packages/a5/61/a867851fd5ab77277495a8709ddda0861b28163c4613b011bc00228cc724/requests-2.28.1.tar.gz"
|
|
sha256 "7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983"
|
|
end
|
|
|
|
resource "rich" do
|
|
url "https://files.pythonhosted.org/packages/11/23/814edf09ec6470d52022b9e95c23c1bef77f0bc451761e1504ebd09606d3/rich-12.6.0.tar.gz"
|
|
sha256 "ba3a3775974105c221d31141f2c116f4fd65c5ceb0698657a11e9f295ec93fd0"
|
|
end
|
|
|
|
resource "rich-rst" do
|
|
url "https://files.pythonhosted.org/packages/7c/40/9e9dded097de3100713a0258793b2ddf8dd33cdb51c71b7ce8577cc2db4b/rich-rst-1.1.7.tar.gz"
|
|
sha256 "898bd5defd6bde9fba819614575dc5bff18047af38ae1981de0c1e78f17bbfd5"
|
|
end
|
|
|
|
resource "textual" do
|
|
url "https://files.pythonhosted.org/packages/8c/d1/c228993e8a21e24bb43a0376b2901b6f3f2033dae13e7f76d1103bb9b8a3/textual-0.1.18.tar.gz"
|
|
sha256 "b2883f8ed291de58b9aa73de6d24bbaae0174687487458a4eb2a7c188a2acf23"
|
|
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
|
|
end
|
|
|
|
test do
|
|
(testpath/"foo.md").write("- Hello, World")
|
|
assert_equal "• Hello, World", shell_output("#{bin}/rich foo.md").strip
|
|
end
|
|
end
|