35 lines
1.6 KiB
Ruby
35 lines
1.6 KiB
Ruby
class Jello < Formula
|
|
include Language::Python::Virtualenv
|
|
|
|
desc "Filter JSON and JSON Lines data with Python syntax"
|
|
homepage "https://github.com/kellyjonbrazil/jello"
|
|
url "https://files.pythonhosted.org/packages/e0/1a/cfc56d52e2db7cdd1b9641affc14db77c8d9a7850b33f81eebe39eee1fb5/jello-1.5.3.tar.gz"
|
|
sha256 "397b15b7721bfc7fa8b6a11bce8748f6d55013369fec3537dc88a5740e0aef5f"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "f0c3011fe80691e3cd96c3012dbecc089547800fb6d8885ba4a2aa15c16f8737"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "f0c3011fe80691e3cd96c3012dbecc089547800fb6d8885ba4a2aa15c16f8737"
|
|
sha256 cellar: :any_skip_relocation, monterey: "7bf65f4e2c6382451b85b19492f2a36ef34ecf1f41a9d62d53661fdb2b713247"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "7bf65f4e2c6382451b85b19492f2a36ef34ecf1f41a9d62d53661fdb2b713247"
|
|
sha256 cellar: :any_skip_relocation, catalina: "7bf65f4e2c6382451b85b19492f2a36ef34ecf1f41a9d62d53661fdb2b713247"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "b8d070ea343693f5eb6da936d58960958545987dd3761b51580bb4a4ead4a182"
|
|
end
|
|
|
|
depends_on "python@3.10"
|
|
|
|
resource "Pygments" do
|
|
url "https://files.pythonhosted.org/packages/59/0f/eb10576eb73b5857bc22610cdfc59e424ced4004fe7132c8f2af2cc168d3/Pygments-2.12.0.tar.gz"
|
|
sha256 "5eb116118f9612ff1ee89ac96437bb6b49e8f04d8a13b514ba26f620208e26eb"
|
|
end
|
|
|
|
def install
|
|
virtualenv_install_with_resources
|
|
man1.install "man/jello.1"
|
|
end
|
|
|
|
test do
|
|
assert_equal "1\n", pipe_output("#{bin}/jello _.foo", "{\"foo\":1}")
|
|
end
|
|
end
|