43 lines
1.8 KiB
Ruby
43 lines
1.8 KiB
Ruby
class Httpie < Formula
|
|
include Language::Python::Virtualenv
|
|
|
|
desc "User-friendly cURL replacement (command-line HTTP client)"
|
|
homepage "https://httpie.org/"
|
|
url "https://files.pythonhosted.org/packages/28/93/4ebf2de4bc74bd517a27a600b2b23a5254a20f28e6e36fc876fd98f7a51b/httpie-0.9.9.tar.gz"
|
|
sha256 "f1202e6fa60367e2265284a53f35bfa5917119592c2ab08277efc7fffd744fcb"
|
|
revision 3
|
|
head "https://github.com/jkbrzt/httpie.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "994377256e27f89cfae446690dc711dcfd4463db87d984079a5e1552482483e1" => :high_sierra
|
|
sha256 "8a55919e7395e5469d7b846dfa80db631955cfe51b02b037400620812c110e3e" => :sierra
|
|
sha256 "935591fe18d118794fa22c824acfcc796f4df395afae9ffa1add54f278ec11de" => :el_capitan
|
|
end
|
|
|
|
depends_on "python"
|
|
|
|
resource "Pygments" do
|
|
url "https://files.pythonhosted.org/packages/b8/67/ab177979be1c81bc99c8d0592ef22d547e70bb4c6815c383286ed5dec504/Pygments-2.1.3.tar.gz"
|
|
sha256 "88e4c8a91b2af5962bfa5ea2447ec6dd357018e86e94c7d14bd8cacbc5b55d81"
|
|
end
|
|
|
|
resource "requests" do
|
|
url "https://files.pythonhosted.org/packages/d9/03/155b3e67fe35fe5b6f4227a8d9e96a14fda828b18199800d161bcefc1359/requests-2.12.3.tar.gz"
|
|
sha256 "de5d266953875e9647e37ef7bfe6ef1a46ff8ddfe61b5b3652edf7ea717ee2b2"
|
|
end
|
|
|
|
resource "PySocks" do
|
|
url "https://files.pythonhosted.org/packages/fd/70/ba9982cedc9b3ed3c06934f1f46a609e0f23c7bfdf567c52a09f1296b8cb/PySocks-1.6.6.tar.gz"
|
|
sha256 "02419a225ff5dcfc3c9695ef8fc9b4d8cc99658e650c6d4718d4c8f451e63f41"
|
|
end
|
|
|
|
def install
|
|
virtualenv_install_with_resources
|
|
end
|
|
|
|
test do
|
|
raw_url = "https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/httpie.rb"
|
|
assert_match "PYTHONPATH", shell_output("#{bin}/http --ignore-stdin #{raw_url}")
|
|
end
|
|
end
|