2016-12-08 04:58:49 +01:00
|
|
|
# The latest Homebrew formula as submitted to Homebrew/homebrew-core.
|
|
|
|
# Only useful for testing until it gets accepted by homebrew maintainers.
|
2016-12-08 21:48:18 +01:00
|
|
|
# (It will need to be updated from the repo version before next release.)
|
2016-12-08 04:58:49 +01:00
|
|
|
#
|
|
|
|
# https://github.com/Homebrew/homebrew-core/blob/master/Formula/httpie.rb
|
|
|
|
#
|
|
|
|
class Httpie < Formula
|
2018-11-02 17:18:04 +01:00
|
|
|
include Language::Python::Virtualenv
|
|
|
|
|
2016-12-08 04:58:49 +01:00
|
|
|
desc "User-friendly cURL replacement (command-line HTTP client)"
|
|
|
|
homepage "https://httpie.org/"
|
2020-04-18 13:24:25 +02:00
|
|
|
url "https://files.pythonhosted.org/packages/e2/79/da6aec7b4356e8b325561b987c940e5b1e4de1200a5c3db7c57a97d61ca1/httpie-2.1.0.tar.gz"
|
|
|
|
sha256 "a76f1c72e83bd03cde3478c5f345d5570fdb2967ed19d68d09518088640b9e8e"
|
2020-01-12 11:44:58 +01:00
|
|
|
revision 1
|
2018-11-06 11:37:33 +01:00
|
|
|
head "https://github.com/jakubroztocil/httpie.git"
|
2016-12-08 04:58:49 +01:00
|
|
|
|
2018-11-06 11:37:33 +01:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2020-04-18 13:24:25 +02:00
|
|
|
sha256 "1fb33d9c85dc462c2549a03cf08670edad8014a5fdf0a7cb26493c64af40283d" => :catalina
|
|
|
|
sha256 "a22030f0b96c698c90265286ee80ffbb03079d1d008a80c0bdb3ea15a17d3fbb" => :mojave
|
|
|
|
sha256 "9f994ecf826efe53a3a49d1c3193e271629068d11306df55adeea2842a8afb8c" => :high_sierra
|
2018-11-06 11:37:33 +01:00
|
|
|
end
|
|
|
|
|
2020-01-12 11:44:58 +01:00
|
|
|
depends_on "python@3.8"
|
2016-12-08 04:58:49 +01:00
|
|
|
|
2019-08-29 07:38:46 +02:00
|
|
|
resource "Pygments" do
|
2020-04-18 13:24:25 +02:00
|
|
|
url "https://files.pythonhosted.org/packages/6e/4d/4d2fe93a35dfba417311a4ff627489a947b01dc0cc377a3673c00cf7e4b2/Pygments-2.6.1.tar.gz"
|
|
|
|
sha256 "647344a061c249a3b74e230c739f434d7ea4d8b1d5f3721bc0f3558049b38f44"
|
2018-11-02 17:18:04 +01:00
|
|
|
end
|
2016-12-08 04:58:49 +01:00
|
|
|
|
|
|
|
resource "requests" do
|
2020-04-18 13:24:25 +02:00
|
|
|
url "https://files.pythonhosted.org/packages/f5/4f/280162d4bd4d8aad241a21aecff7a6e46891b905a4341e7ab549ebaf7915/requests-2.23.0.tar.gz"
|
|
|
|
sha256 "b3f43d496c6daba4493e7c431722aeb7dbc6288f52a6e04e7b6023b0247817e6"
|
2016-12-08 04:58:49 +01:00
|
|
|
end
|
|
|
|
|
2018-11-02 17:18:04 +01:00
|
|
|
resource "certifi" do
|
2020-04-18 13:24:25 +02:00
|
|
|
url "https://files.pythonhosted.org/packages/b8/e2/a3a86a67c3fc8249ed305fc7b7d290ebe5e4d46ad45573884761ef4dea7b/certifi-2020.4.5.1.tar.gz"
|
|
|
|
sha256 "51fcb31174be6e6664c5f69e3e1691a2d72a1a12e90f872cbdb1567eb47b6519"
|
2018-11-02 17:18:04 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "urllib3" do
|
2020-04-18 13:24:25 +02:00
|
|
|
url "https://files.pythonhosted.org/packages/05/8c/40cd6949373e23081b3ea20d5594ae523e681b6f472e600fbc95ed046a36/urllib3-1.25.9.tar.gz"
|
|
|
|
sha256 "3018294ebefce6572a474f0604c2021e33b3fd8006ecd11d62107a5d2a963527"
|
2016-12-08 04:58:49 +01:00
|
|
|
end
|
|
|
|
|
2018-11-02 17:18:04 +01:00
|
|
|
resource "idna" do
|
2020-04-18 13:24:25 +02:00
|
|
|
url "https://files.pythonhosted.org/packages/cb/19/57503b5de719ee45e83472f339f617b0c01ad75cba44aba1e4c97c2b0abd/idna-2.9.tar.gz"
|
|
|
|
sha256 "7588d1c14ae4c77d74036e8c22ff447b26d0fde8f007354fd48a7814db15b7cb"
|
2018-11-02 17:18:04 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
resource "chardet" do
|
|
|
|
url "https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz"
|
|
|
|
sha256 "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"
|
|
|
|
end
|
|
|
|
|
|
|
|
resource "PySocks" do
|
2020-01-12 11:44:58 +01:00
|
|
|
url "https://files.pythonhosted.org/packages/bd/11/293dd436aea955d45fc4e8a35b6ae7270f5b8e00b53cf6c024c83b657a11/PySocks-1.7.1.tar.gz"
|
|
|
|
sha256 "3f8804571ebe159c380ac6de37643bb4685970655d3bba243530d6558b799aa0"
|
2018-11-02 17:18:04 +01:00
|
|
|
end
|
|
|
|
|
2016-12-08 04:58:49 +01:00
|
|
|
def install
|
2018-11-02 17:18:04 +01:00
|
|
|
virtualenv_install_with_resources
|
2016-12-08 04:58:49 +01:00
|
|
|
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
|