33 lines
1.3 KiB
Ruby
33 lines
1.3 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/9e/8c/c625f0d6c824cf955a29d6d3df537fe310c4b65ead63afbb77ec10a1c729/jello-1.4.4.tar.gz"
|
|
sha256 "c42d5202282fa10b57f5830b8e4a74da7a75d585f000b812bbfd90bff28c2bfc"
|
|
license "MIT"
|
|
|
|
bottle do
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d3d3e11871eabe0bfe95e772a269adac4a07d1496e627631e71b91d59377ace9"
|
|
sha256 cellar: :any_skip_relocation, big_sur: "7b214228da50b700cffea3a060c1345e0e4d0761e5b7c23d47a61cfaf0a1afc4"
|
|
sha256 cellar: :any_skip_relocation, catalina: "7b214228da50b700cffea3a060c1345e0e4d0761e5b7c23d47a61cfaf0a1afc4"
|
|
sha256 cellar: :any_skip_relocation, mojave: "7b214228da50b700cffea3a060c1345e0e4d0761e5b7c23d47a61cfaf0a1afc4"
|
|
end
|
|
|
|
depends_on "python@3.9"
|
|
|
|
resource "Pygments" do
|
|
url "https://files.pythonhosted.org/packages/ba/6e/7a7c13c21d8a4a7f82ccbfe257a045890d4dbf18c023f985f565f97393e3/Pygments-2.9.0.tar.gz"
|
|
sha256 "a18f47b506a429f6f4b9df81bb02beab9ca21d0a5fee38ed15aef65f0545519f"
|
|
end
|
|
|
|
def install
|
|
virtualenv_install_with_resources
|
|
man1.install "jello/man/jello.1"
|
|
end
|
|
|
|
test do
|
|
assert_equal "1\n", pipe_output("#{bin}/jello _.foo", "{\"foo\":1}")
|
|
end
|
|
end
|