133 lines
5.6 KiB
Ruby
133 lines
5.6 KiB
Ruby
class AwsElasticbeanstalk < Formula
|
|
desc "Client for Amazon Elastic Beanstalk web service"
|
|
homepage "https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-reference-eb.html"
|
|
url "https://pypi.python.org/packages/a4/1e/feb002358f3994bb8434ad39a1451f14d34cb3f352710be8c84feb060418/awsebcli-3.7.7.tar.gz"
|
|
sha256 "23f0ada9644cea1d64260de6f185a8c5daa4e0b1db65821572d35c648f3778af"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "ef17da32e89cfe76893539da2f539f0d84cff037132113d2cbbf0ffe598b9f05" => :el_capitan
|
|
sha256 "cbb278139721e66413fcdf2c574e70f0b1ba728e12270c5fbaea2ee8e9d957e2" => :yosemite
|
|
sha256 "ebdc6e0de2ab029229aee926f096ad598b3cc39b9d4960da6b6e6a01e748ba59" => :mavericks
|
|
end
|
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
|
|
|
resource "pyyaml" do
|
|
url "https://pypi.python.org/packages/source/P/PyYAML/PyYAML-3.11.tar.gz"
|
|
sha256 "c36c938a872e5ff494938b33b14aaa156cb439ec67548fcab3535bb78b0846e8"
|
|
end
|
|
|
|
resource "cement" do
|
|
url "https://pypi.python.org/packages/70/60/608f0b8975f4ee7deaaaa7052210d095e0b96e7cd3becdeede9bd13674a1/cement-2.8.2.tar.gz"
|
|
sha256 "8765ed052c061d74e4d0189addc33d268de544ca219b259d797741f725e422d2"
|
|
end
|
|
|
|
resource "backports.ssl_match_hostname" do
|
|
url "https://pypi.python.org/packages/source/b/backports.ssl_match_hostname/backports.ssl_match_hostname-3.4.0.2.tar.gz"
|
|
sha256 "07410e7fb09aab7bdaf5e618de66c3dac84e2e3d628352814dc4c37de321d6ae"
|
|
end
|
|
|
|
resource "pathspec" do
|
|
url "https://pypi.python.org/packages/14/9d/c9d790d373d6f6938d793e9c549b87ad8670b6fa7fc6176485e6ef11c1a4/pathspec-0.3.4.tar.gz#md5=2a4af9bf2dee98845d583ec61a00d05d"
|
|
sha256 "7605ca5c26f554766afe1d177164a2275a85bb803b76eba3428f422972f66728"
|
|
end
|
|
|
|
resource "docopt" do
|
|
url "https://pypi.python.org/packages/source/d/docopt/docopt-0.6.2.tar.gz"
|
|
sha256 "49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
|
|
end
|
|
|
|
resource "requests" do
|
|
url "https://pypi.python.org/packages/source/r/requests/requests-2.6.2.tar.gz"
|
|
sha256 "0577249d4b6c4b11fd97c28037e98664bfaa0559022fee7bcef6b752a106e505"
|
|
end
|
|
|
|
resource "texttable" do
|
|
url "https://pypi.python.org/packages/source/t/texttable/texttable-0.8.4.tar.gz"
|
|
sha256 "8587b61cb6c6022d0eb79e56e59825df4353f0f33099b4ae3bcfe8d41bd1702e"
|
|
end
|
|
|
|
resource "websocket-client" do
|
|
url "https://pypi.python.org/packages/source/w/websocket-client/websocket_client-0.34.0.tar.gz"
|
|
sha256 "682a6241ca953499f06ca506f69aa3ea26f0ed2a41fe7982732cb8449ae92ddf"
|
|
end
|
|
|
|
resource "docker-py" do
|
|
url "https://pypi.python.org/packages/source/d/docker-py/docker-py-1.1.0.tar.gz"
|
|
sha256 "6a07eb56b234719e89d3038c24f9c870b6f1ee0b58080120e865e2752673cd94"
|
|
end
|
|
|
|
resource "dockerpty" do
|
|
url "https://pypi.python.org/packages/source/d/dockerpty/dockerpty-0.3.4.tar.gz"
|
|
sha256 "a51044cc49089a2408fdf6769a63eebe0b16d91f34716ecee681984446ce467d"
|
|
end
|
|
|
|
resource "python-dateutil" do
|
|
url "https://pypi.python.org/packages/source/p/python-dateutil/python-dateutil-2.4.2.tar.gz"
|
|
sha256 "3e95445c1db500a344079a47b171c45ef18f57d188dffdb0e4165c71bea8eb3d"
|
|
end
|
|
|
|
resource "jmespath" do
|
|
url "https://pypi.python.org/packages/source/j/jmespath/jmespath-0.9.0.tar.gz"
|
|
sha256 "08dfaa06d4397f283a01e57089f3360e3b52b5b9da91a70e1fd91e9f0cdd3d3d"
|
|
end
|
|
|
|
resource "six" do
|
|
url "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz"
|
|
sha256 "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a"
|
|
end
|
|
|
|
resource "blessed" do
|
|
url "https://pypi.python.org/packages/source/b/blessed/blessed-1.9.5.tar.gz"
|
|
sha256 "b93b5c7600814638c0913c8325608327a24e3731977d9a4f003ecf37b08ca6e5"
|
|
end
|
|
|
|
resource "colorama" do
|
|
url "https://pypi.python.org/packages/f0/d0/21c6449df0ca9da74859edc40208b3a57df9aca7323118c913e58d442030/colorama-0.3.7.tar.gz#md5=349d2b02618d3d39e5c6aede36fe3c1a"
|
|
sha256 "e043c8d32527607223652021ff648fbb394d5e19cba9f1a698670b338c9d782b"
|
|
end
|
|
|
|
resource "botocore" do
|
|
url "https://pypi.python.org/packages/0d/b4/cf63a4ca94af097219d11147e9cbc9f5b4a23487e210cf526dbdb2eafc55/botocore-1.4.24.tar.gz#md5=9bf4bfecc95adeeb4fa5330c3d096ed4"
|
|
sha256 "5261c804edbb4bb9422768fa0a46b7daeca3665f3ff664ab86fe0fe1d3413a46"
|
|
end
|
|
|
|
resource "wcwidth" do
|
|
url "https://pypi.python.org/packages/source/w/wcwidth/wcwidth-0.1.5.tar.gz"
|
|
sha256 "66c7ce3199c87833aaaa1fe1241b63261ce53c1062597c189a16a54713e0919d"
|
|
end
|
|
|
|
resource "docutils" do
|
|
url "https://pypi.python.org/packages/source/d/docutils/docutils-0.12.tar.gz"
|
|
sha256 "c7db717810ab6965f66c8cf0398a98c9d8df982da39b4cd7f162911eb89596fa"
|
|
end
|
|
|
|
resource "setuptools" do
|
|
url "https://pypi.python.org/packages/f5/90/010892bde11d2da00548285da29a055e6b0e3b81592bb6021571b87f34a1/setuptools-22.0.0.tar.gz#md5=ddd9fbe3da4ac564830d75fadf796930"
|
|
sha256 "1324ed0b1b4929fe49c347909624dbf53989555a033419f3d45ceff4c0acd6f3"
|
|
end
|
|
|
|
resource "semantic_version" do
|
|
url "https://pypi.python.org/packages/8e/0e/33052dd97ab9d07dae8ddffcfb2740efe58c46d72efbc060cf6da250439f/semantic_version-2.5.0.tar.gz#md5=9a3f8e3ca00dcd2da16e30d55a4d4d99"
|
|
sha256 "3baad35dcb074a49419539cea6a33b484706b6c2dd03f05b67763eba4c1bb65c"
|
|
end
|
|
|
|
def install
|
|
ENV.prepend_create_path "PYTHONPATH", libexec+"lib/python2.7/site-packages"
|
|
|
|
resources.each do |r|
|
|
r.stage { system "python", *Language::Python.setup_install_args(libexec) }
|
|
end
|
|
|
|
system "python", *Language::Python.setup_install_args(libexec)
|
|
|
|
bash_completion.install libexec/"bin/eb_completion.bash"
|
|
bin.install Dir[libexec/"bin/{eb,jp}"]
|
|
bin.env_script_all_files(libexec+"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/eb", "--version"
|
|
end
|
|
end
|