borgmatic: depend on jsonschema

Closes #113105.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
David Baumgold 2022-10-14 09:58:30 +02:00 committed by BrewTestBot
parent 5925ce22e1
commit a8b260b64e
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
2 changed files with 9 additions and 15 deletions

View File

@ -16,13 +16,9 @@ class Borgmatic < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "208141fd3850a7f7d9fefd22df09f9b3ef59b243fbb1b90ddf304338f7fa14b1"
end
depends_on "jsonschema"
depends_on "python@3.10"
resource "attrs" do
url "https://files.pythonhosted.org/packages/1a/cb/c4ffeb41e7137b23755a45e1bfec9cbb76ecf51874c6f1d113984ecaa32c/attrs-22.1.0.tar.gz"
sha256 "29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6"
end
resource "certifi" do
url "https://files.pythonhosted.org/packages/cb/a4/7de7cd59e429bd0ee6521ba58a75adaec136d32f91a761b28a11d8088d44/certifi-2022.9.24.tar.gz"
sha256 "0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14"
@ -43,16 +39,6 @@ class Borgmatic < Formula
sha256 "814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"
end
resource "jsonschema" do
url "https://files.pythonhosted.org/packages/cf/54/8923ba38b5145f2359d57e5516715392491d674c83f446cd4cd133eeb4d6/jsonschema-4.16.0.tar.gz"
sha256 "165059f076eff6971bae5b742fc029a7b4ef3f9bcf04c14e4776a7605de14b23"
end
resource "pyrsistent" do
url "https://files.pythonhosted.org/packages/42/ac/455fdc7294acc4d4154b904e80d964cc9aae75b087bbf486be04df9f2abd/pyrsistent-0.18.1.tar.gz"
sha256 "d4d61f8b993a7255ba714df3aca52700f8125289f84f704cf80916517c46eb96"
end
resource "requests" do
url "https://files.pythonhosted.org/packages/a5/61/a867851fd5ab77277495a8709ddda0861b28163c4613b011bc00228cc724/requests-2.28.1.tar.gz"
sha256 "7c5599b102feddaa661c826c56ab4fee28bfd17f5abca1ebbe3e7f19d7c97983"
@ -75,6 +61,11 @@ class Borgmatic < 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
test do

View File

@ -50,6 +50,9 @@
"exclude_packages": ["PyYAML"]
},
"black": "black[d]",
"borgmatic": {
"exclude_packages": ["jsonschema", "attrs", "pyrsistent"]
},
"bpython": {
"exclude_packages": ["six"]
},