Skip to content

sacad 2.8.0 (new formula) #220055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions Formula/s/sacad.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
class Sacad < Formula
include Language::Python::Virtualenv

desc "Automatic cover art downloader"
homepage "https://github.com/desbma/sacad"
url "https://github.com/desbma/sacad/archive/refs/tags/2.8.0.tar.gz"
sha256 "73333aabbab71a941ed393e9c497250bb9a8a06eb93a4da9afef46d2d6dd5f00"
license "MPL-2.0"

depends_on "pillow"
depends_on "[email protected]"

uses_from_macos "libxml2"
uses_from_macos "libxslt"

resource "aiohappyeyeballs" do
url "https://files.pythonhosted.org/packages/26/30/f84a107a9c4331c14b2b586036f40965c128aa4fee4dda5d3d51cb14ad54/aiohappyeyeballs-2.6.1.tar.gz"
sha256 "c3f9d0113123803ccadfdf3f0faa505bc78e6a72d1cc4806cbd719826e943558"
end

resource "aiohttp" do
url "https://files.pythonhosted.org/packages/f1/d9/1c4721d143e14af753f2bf5e3b681883e1f24b592c0482df6fa6e33597fa/aiohttp-3.11.16.tar.gz"
sha256 "16f8a2c9538c14a557b4d309ed4d0a7c60f0253e8ed7b6c9a2859a7582f8b1b8"
end

resource "aiosignal" do
url "https://files.pythonhosted.org/packages/ba/b5/6d55e80f6d8a08ce22b982eafa278d823b541c925f11ee774b0b9c43473d/aiosignal-1.3.2.tar.gz"
sha256 "a8c255c66fafb1e499c9351d0bf32ff2d8a0321595ebac3b93713656d2436f54"
end

resource "appdirs" do
url "https://files.pythonhosted.org/packages/d7/d8/05696357e0311f5b5c316d7b95f46c669dd9c15aaeecbb48c7d0aeb88c40/appdirs-1.4.4.tar.gz"
sha256 "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"
end

resource "attrs" do
url "https://files.pythonhosted.org/packages/5a/b0/1367933a8532ee6ff8d63537de4f1177af4bff9f3e829baf7331f595bb24/attrs-25.3.0.tar.gz"
sha256 "75d7cefc7fb576747b2c81b4442d4d4a1ce0900973527c011d1030fd3bf4af1b"
end

resource "bitarray" do
url "https://files.pythonhosted.org/packages/f1/6e/e3877eebb83e3e9d22b6089be7b8c098d3d09b2195a9570d6d9049e90d5b/bitarray-3.3.1.tar.gz"
sha256 "8c89219a672d0a15ab70f8a6f41bc8355296ec26becef89a127c1a32bb2e6345"
end

resource "cssselect" do
url "https://files.pythonhosted.org/packages/72/0a/c3ea9573b1dc2e151abfe88c7fe0c26d1892fe6ed02d0cdb30f0d57029d5/cssselect-1.3.0.tar.gz"
sha256 "57f8a99424cfab289a1b6a816a43075a4b00948c86b4dcf3ef4ee7e15f7ab0c7"
end

resource "frozenlist" do
url "https://files.pythonhosted.org/packages/8f/ed/0f4cec13a93c02c47ec32d81d11c0c1efbadf4a471e3f3ce7cad366cbbd3/frozenlist-1.5.0.tar.gz"
sha256 "81d5af29e61b9c8348e876d442253723928dce6433e0e76cd925cd83f1b4b817"
end

resource "idna" do
url "https://files.pythonhosted.org/packages/f1/70/7703c29685631f5a7590aa73f1f1d3fa9a380e654b86af429e0934a32f7d/idna-3.10.tar.gz"
sha256 "12f65c9b470abda6dc35cf8e63cc574b1c52b11df2c86030af0ac09b01b13ea9"
end

resource "lxml" do
url "https://files.pythonhosted.org/packages/80/61/d3dc048cd6c7be6fe45b80cedcbdd4326ba4d550375f266d9f4246d0f4bc/lxml-5.3.2.tar.gz"
sha256 "773947d0ed809ddad824b7b14467e1a481b8976e87278ac4a730c2f7c7fcddc1"
end

resource "multidict" do
url "https://files.pythonhosted.org/packages/da/2c/e367dfb4c6538614a0c9453e510d75d66099edf1c4e69da1b5ce691a1931/multidict-6.4.3.tar.gz"
sha256 "3ada0b058c9f213c5f95ba301f922d402ac234f1111a7d8fd70f1b99f3c281ec"
end

resource "mutagen" do
url "https://files.pythonhosted.org/packages/81/e6/64bc71b74eef4b68e61eb921dcf72dabd9e4ec4af1e11891bbd312ccbb77/mutagen-1.47.0.tar.gz"
sha256 "719fadef0a978c31b4cf3c956261b3c58b6948b32023078a2117b1de09f0fc99"
end

resource "propcache" do
url "https://files.pythonhosted.org/packages/07/c8/fdc6686a986feae3541ea23dcaa661bd93972d3940460646c6bb96e21c40/propcache-0.3.1.tar.gz"
sha256 "40d980c33765359098837527e18eddefc9a24cea5b45e078a7f3bb5b032c6ecf"
end

resource "tqdm" do
url "https://files.pythonhosted.org/packages/a8/4b/29b4ef32e036bb34e4ab51796dd745cdba7ed47ad142a9f4a1eb8e0c744d/tqdm-4.67.1.tar.gz"
sha256 "f8aef9c52c08c13a65f30ea34f4e5aac3fd1a34959879d7e59e63027286627f2"
end

resource "unidecode" do
url "https://files.pythonhosted.org/packages/f7/89/19151076a006b9ac0dd37b1354e031f5297891ee507eb624755e58e10d3e/Unidecode-1.3.8.tar.gz"
sha256 "cfdb349d46ed3873ece4586b96aa75258726e2fa8ec21d6f00a591d98806c2f4"
end

resource "web-cache" do
url "https://files.pythonhosted.org/packages/1b/67/9970fa9705c2e4234923a1ae0ca96bd5f29571d21b70c5457528347f1eaf/web_cache-1.1.0.tar.gz"
sha256 "d5a10a34c87beffc794b8e1dec77bf6b419886b9cc60b9b10c706810870e0eb5"
end

resource "yarl" do
url "https://files.pythonhosted.org/packages/fc/4d/8a8f57caccce49573e567744926f88c6ab3ca0b47a257806d1cf88584c5f/yarl-1.19.0.tar.gz"
sha256 "01e02bb80ae0dbed44273c304095295106e1d9470460e773268a27d11e594892"
end

def install
virtualenv_install_with_resources
end

test do

Check failure on line 105 in Formula/s/sacad.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew test --verbose sacad` failed on macOS Sonoma (14) on Apple Silicon!

usage: sacad [-h] [-t SIZE_TOLERANCE_PRCT] [-s {deezer,discogs,itunes,lastfm} [{deezer,discogs,itunes,lastfm} ...]] [-p] [--convert-progressive-jpeg] [-v {quiet,warning,normal,debug}] artist album size out_filepath sacad: error: the following arguments are required: album, size, out_filepath ::error::sacad: failed An exception occurred within a child process: Minitest::Assertion: Expected: 0 Actual: 2 /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.5/lib/minitest/assertions.rb:176:in `assert' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.5/lib/minitest/assertions.rb:216:in `assert_equal' /opt/homebrew/Library/Homebrew/formula_assertions.rb:31:in `shell_output' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/call_validation.rb:282:in `bind_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/call_validation.rb:282:in `validate_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/s/sacad.rb:110:in `block in <class:Sacad>' /opt/homebrew/Library/Homebrew/formula.rb:2841:in `block (3 levels) in run_test' /opt/homebrew/Library/Homebrew/extend/kernel.rb:547:in `with_env' /opt/homebrew/Library/Homebrew/formula.rb:2840:in `block (2 levels) in run_test' /opt/homebrew/Library/Homebrew/formula.rb:1171:in `with_logging' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/call_validation.rb:282:in `bind_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/call_validation.rb:282:in `validate_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /opt/homebrew/Library/Homebrew/formula.rb:2839:in `block in run_test' /opt/homebrew/Library/Homebrew/mktemp.rb:90:in `block in run' /opt/homebrew/Library/Homebrew/mktemp.rb:90:in `chdir' /opt/homebrew/Library/Homebrew/mktemp.rb:90:in `run' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/call_validation.rb:282:in `bind_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/call_validation.rb:282:in `validate_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /opt/homebrew/Library/Homebrew/formula.rb:3179:in `mktemp' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/call_validation.rb:282:in `bind_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/call_validation.rb:282:in `validate_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /opt/homebrew/Library/Homebrew/formula.rb:2833:in `run_test' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/call_validation.rb:282:in `bind_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/call_validation.rb:282:in `validate_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.3.0/gems/sorbet-runtime-0.5.12016/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /opt/homebrew/Library/Homebrew/test.rb:48:in `block in <main>' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.8/lib/ruby/3.3.0/timeout.rb:186:in `block in timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.8/lib/rub
assert_match version.to_s, shell_output("#{bin}/sacad -- version")
system bin/"sacad", "metallica", "master of puppets", "600", "AlbumArt.jpg"
end
end
3 changes: 3 additions & 0 deletions pypi_formula_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,9 @@
"ruff-lsp": {
"exclude_packages": ["ruff"]
},
"sacad": {
"exclude_packages": ["pillow"]
},
"safety": {
"exclude_packages": ["certifi", "cryptography"]
},
Expand Down
Loading