homebrew-core/Formula/principalmapper.rb

72 lines
3.3 KiB
Ruby

class Principalmapper < Formula
include Language::Python::Virtualenv
desc "Quickly evaluate IAM permissions in AWS"
homepage "https://github.com/nccgroup/PMapper"
url "https://files.pythonhosted.org/packages/3f/8c/3d2efe475e9244bd45e3a776ea8207f34a9bb15caaa02f6c95e473b2ada2/principalmapper-1.1.5.tar.gz"
sha256 "04cb9dcff0cc512df4714b3c4ea63a261001f271f95c8a453b2805290c57bbc2"
license "AGPL-3.0-or-later"
revision 1
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "77abaa1256b9f3c7886d43742a61269bcdcfbb4c0236dd27f699364f9e230f0c"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "9c8b37a94de3ff964ec565faa39880f00da068c722d2ee2808911aabccc9672e"
sha256 cellar: :any_skip_relocation, monterey: "9d7a6946ad11046fe57ee129428128d6741d7143016300c3185e9741aa31836a"
sha256 cellar: :any_skip_relocation, big_sur: "b1be055d29131d5b6165459e35f9b5caeddc601bd389340e08b93c1fe94ace7d"
sha256 cellar: :any_skip_relocation, catalina: "26a9edce1ceb9433705a0276ad9b51676dd56b1be7835731aa65966b2736ebf7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c8af3ebfce822022a9b83d0ccee1a299bb05bd4f6f22a7b3d5fda05d03f6eac6"
end
depends_on "python@3.10"
depends_on "six"
resource "botocore" do
url "https://files.pythonhosted.org/packages/5d/f9/14a1a0bd641ecb58434ca711afcd7b35b5e1c61736a0c4124e0cdc9bee61/botocore-1.23.52.tar.gz"
sha256 "35a1a950c2bd8dd2fcc648c5f4d16814bfd7e3efd7998d3978b2f11665eb1668"
end
resource "jmespath" do
url "https://files.pythonhosted.org/packages/3c/56/3f325b1eef9791759784aa5046a8f6a1aff8f7c898a2e34506771d3b99d8/jmespath-0.10.0.tar.gz"
sha256 "b85d0567b8666149a93172712e68920734333c0ce7e89b78b3e987f71e5ed4f9"
end
resource "packaging" do
url "https://files.pythonhosted.org/packages/df/9e/d1a7217f69310c1db8fdf8ab396229f55a699ce34a203691794c5d1cad0c/packaging-21.3.tar.gz"
sha256 "dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb"
end
resource "pydot" do
url "https://files.pythonhosted.org/packages/13/6e/916cdf94f9b38ae0777b254c75c3bdddee49a54cc4014aac1460a7a172b3/pydot-1.4.2.tar.gz"
sha256 "248081a39bcb56784deb018977e428605c1c758f10897a339fce1dd728ff007d"
end
resource "pyparsing" do
url "https://files.pythonhosted.org/packages/d6/60/9bed18f43275b34198eb9720d4c1238c68b3755620d20df0afd89424d32b/pyparsing-3.0.7.tar.gz"
sha256 "18ee9022775d270c55187733956460083db60b37d0d0fb357445f3094eed3eea"
end
resource "python-dateutil" do
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
end
resource "urllib3" do
url "https://files.pythonhosted.org/packages/b0/b1/7bbf5181f8e3258efae31702f5eab87d8a74a72a0aa78bc8c08c1466e243/urllib3-1.26.8.tar.gz"
sha256 "0e7c33d9a63e7ddfcb86780aac87befc2fbddf46c58dbb487e0855f7ceec283c"
end
# Support Python 3.10, remove on next release
patch do
url "https://github.com/nccgroup/PMapper/commit/88bad89bd84a20a264165514363e52a84d39e8d7.patch?full_index=1"
sha256 "9c731e2613095ea5098eda7141ae854fceec3fc8477a7a7e3202ed6c751e68dc"
end
def install
virtualenv_install_with_resources
end
test do
assert_equal "Account IDs:\n---", shell_output("#{bin}/pmapper graph list").strip
end
end