moto: depends on jsonschema and pyyaml
Closes #110881. Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>master
parent
e2e4e5ac6c
commit
3a75967285
|
@ -17,14 +17,11 @@ class Moto < Formula
|
|||
end
|
||||
|
||||
depends_on "rust" => :build # for cryptography
|
||||
depends_on "jsonschema"
|
||||
depends_on "python@3.10"
|
||||
depends_on "pyyaml"
|
||||
depends_on "six"
|
||||
|
||||
resource "attrs" do
|
||||
url "https://files.pythonhosted.org/packages/1a/cb/c4ffeb41e7137b23755a45e1bfec9cbb76ecf51874c6f1d113984ecaa32c/attrs-22.1.0.tar.gz"
|
||||
sha256 "29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6"
|
||||
end
|
||||
|
||||
resource "aws-sam-translator" do
|
||||
url "https://files.pythonhosted.org/packages/7b/c1/e7933aefe6c8ff8d2320fafc2f7160a6306e540c2c6372797a1f7f8f66d3/aws-sam-translator-1.50.0.tar.gz"
|
||||
sha256 "85bea2739e1b4a61b3e4add8a12f727d7a8e459e3da195dfd0cd2e756be054ec"
|
||||
|
@ -151,11 +148,6 @@ class Moto < Formula
|
|||
sha256 "97cba51526c829282218feb99dab1b1e6bdf8efd1c43dc9d57be093c0d69c99a"
|
||||
end
|
||||
|
||||
resource "jsonschema" do
|
||||
url "https://files.pythonhosted.org/packages/69/11/a69e2a3c01b324a77d3a7c0570faa372e8448b666300c4117a516f8b1212/jsonschema-3.2.0.tar.gz"
|
||||
sha256 "c8a85b28d377cc7737e46e2d9f2b4f44ee3c0e1deac6bf46ddefc7187d30797a"
|
||||
end
|
||||
|
||||
resource "junit-xml-2" do
|
||||
url "https://files.pythonhosted.org/packages/4d/f2/a99adf9deb57949b81ff8e113edf971da1840251794a6f4184d61faa5a65/junit-xml-2-1.9.tar.gz"
|
||||
sha256 "3b8d9635c5215f754c7807104f6493e3ea3bc9481e2d33db294560da3a1b00f7"
|
||||
|
@ -206,11 +198,6 @@ class Moto < Formula
|
|||
sha256 "2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb"
|
||||
end
|
||||
|
||||
resource "pyrsistent" do
|
||||
url "https://files.pythonhosted.org/packages/42/ac/455fdc7294acc4d4154b904e80d964cc9aae75b087bbf486be04df9f2abd/pyrsistent-0.18.1.tar.gz"
|
||||
sha256 "d4d61f8b993a7255ba714df3aca52700f8125289f84f704cf80916517c46eb96"
|
||||
end
|
||||
|
||||
resource "python-dateutil" do
|
||||
url "https://files.pythonhosted.org/packages/4c/c4/13b4776ea2d76c115c1d1b84579f3764ee6d57204f6be27119f13a61d0a9/python-dateutil-2.8.2.tar.gz"
|
||||
sha256 "0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86"
|
||||
|
@ -226,11 +213,6 @@ class Moto < Formula
|
|||
sha256 "cea221417204f2d1a2aa03ddae3e867921971d0d76f14d87abb4414415bbdcf5"
|
||||
end
|
||||
|
||||
resource "PyYAML" do
|
||||
url "https://files.pythonhosted.org/packages/36/2b/61d51a2c4f25ef062ae3f74576b01638bebad5e045f747ff12643df63844/PyYAML-6.0.tar.gz"
|
||||
sha256 "68fb519c14306fec9720a2a5b45bc9f0c8d1b9c72adf45c37baedfcd949c35a2"
|
||||
end
|
||||
|
||||
resource "requests" do
|
||||
url "https://files.pythonhosted.org/packages/a5/61/a867851fd5ab77277495a8709ddda0861b28163c4613b011bc00228cc724/requests-2.28.1.tar.gz"
|
||||
sha256 "7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983"
|
||||
|
@ -288,6 +270,10 @@ class Moto < Formula
|
|||
|
||||
def install
|
||||
virtualenv_install_with_resources
|
||||
# we depend on jsonschema, but that's a separate formula, so install a `.pth` file to link them
|
||||
site_packages = Language::Python.site_packages("python3.10")
|
||||
jsonschema = Formula["jsonschema"].opt_libexec
|
||||
(libexec/site_packages/"homebrew-jsonschema.pth").write jsonschema/site_packages
|
||||
end
|
||||
|
||||
service do
|
||||
|
|
|
@ -271,7 +271,7 @@
|
|||
},
|
||||
"moto": {
|
||||
"package_name": "moto[all,server]",
|
||||
"exclude_packages": ["junit-xml", "six"],
|
||||
"exclude_packages": ["junit-xml", "six", "jsonschema", "attrs", "pyrsistent", "PyYAML"],
|
||||
"extra_packages": ["junit-xml-2"]
|
||||
},
|
||||
"mycli": {
|
||||
|
|
Loading…
Reference in New Issue