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/2c/b5/1d5293540c7506296b3777656a24272d192db69e9cce5a9b155df1c74574/jello-1.5.2.tar.gz"
|
|
sha256 "9f52b526febf4ce6f74d6df44517d1bca7df57a1d76c81f21c7f7c9354f61643"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "369fefd4c22c9c012f99788336e08cd270ef1c104b3bf3f9ac606f00bc48b7e8"
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "369fefd4c22c9c012f99788336e08cd270ef1c104b3bf3f9ac606f00bc48b7e8"
|
|
sha256 cellar: :any_skip_relocation, monterey: "08fe6d928c021346c8995b0a2694e18f32ddb1f4304b4e7ee2bcb4c3e95ab3e8"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "08fe6d928c021346c8995b0a2694e18f32ddb1f4304b4e7ee2bcb4c3e95ab3e8"
|
|
sha256 cellar: :any_skip_relocation, catalina: "08fe6d928c021346c8995b0a2694e18f32ddb1f4304b4e7ee2bcb4c3e95ab3e8"
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "05c07473b75ec6fb1592da8c3752d16315a8257702cf596ba061571c9b28e56a"
|
|
end
|
|
|
|
depends_on "python@3.10"
|
|
|
|
resource "Pygments" do
|
|
url "https://files.pythonhosted.org/packages/b7/b3/5cba26637fe43500d4568d0ee7b7362de1fb29c0e158d50b4b69e9a40422/Pygments-2.10.0.tar.gz"
|
|
sha256 "f398865f7eb6874156579fdf36bc840a03cab64d1cde9e93d68f46a425ec52c6"
|
|
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
|