-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathmopidy-podcast-itunes.rb
More file actions
31 lines (26 loc) · 1.2 KB
/
mopidy-podcast-itunes.rb
File metadata and controls
31 lines (26 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class MopidyPodcastItunes < Formula
desc "Mopidy extension for searching and browsing podcasts on the Apple iTunes Store"
homepage "https://github.com/tkem/mopidy-podcast-itunes"
url "https://files.pythonhosted.org/packages/da/37/c056afd9471c0d32ee116ed1f0977c6bc45a1bee2bd5b47e339f198118be/Mopidy-Podcast-iTunes-3.0.1.tar.gz"
sha256 "b31a30447506894afb74aa0d2ace21b4525c704681aafcafcc8366ad921921db"
head "https://github.com/tkem/mopidy-podcast-itunes.git"
revision 2
depends_on "python@3.12"
depends_on "mopidy/mopidy/mopidy"
depends_on "mopidy/mopidy/mopidy-podcast"
# Dependencies assumed bundled by mopidy:
# - pykka
# - requests
def install
python3 = Formula["python@3.12"].opt_bin/"python3.12"
system python3, *Language::Python.setup_install_args(libexec, python=python3)
xy = Language::Python.major_minor_version python3
site_packages = "lib/python#{xy}/site-packages"
pth_contents = "import site; site.addsitedir('#{libexec/site_packages}')\n"
(prefix/site_packages/"homebrew-mopidy-podcast-itunes.pth").write pth_contents
end
test do
python3 = Formula["python@3.12"].opt_bin/"python3.12"
system python3, "-c", "import mopidy_podcast_itunes"
end
end