Skip to content

Commit ccb41cf

Browse files
BrewTestBotcarlocab
authored andcommitted
mpremote 1.26.0
Co-authored-by: Carlo Cabrera <[email protected]>
1 parent 6c5f325 commit ccb41cf

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

Formula/m/mpremote.rb

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ class Mpremote < Formula
33

44
desc "Tool for interacting remotely with MicroPython devices"
55
homepage "https://docs.micropython.org/en/latest/reference/mpremote.html"
6-
url "https://files.pythonhosted.org/packages/86/1d/4a194eb385133349954cbf269e673e59e28b9510c7805e955da1cd32f4c6/mpremote-1.25.0.tar.gz"
7-
sha256 "d0dcd8ab364d87270e1766308882e536e541052efd64aadaac83bc7ebbea2815"
6+
url "https://files.pythonhosted.org/packages/a1/f4/b63592bad49d61f0e79ca58d151eb914f1a3f716e606f436352ee5a1ff94/mpremote-1.26.0.tar.gz"
7+
sha256 "7f347318fb6d3bb8f89401d399a05efba39b51c74f747cebe92d3c6a9a4ee0b4"
88
license "MIT"
99

1010
bottle do
@@ -13,13 +13,30 @@ class Mpremote < Formula
1313

1414
depends_on "[email protected]"
1515

16+
resource "platformdirs" do
17+
url "https://files.pythonhosted.org/packages/fe/8b/3c73abc9c759ecd3f1f7ceff6685840859e8070c4d947c93fae71f6a0bf2/platformdirs-4.3.8.tar.gz"
18+
sha256 "3d512d96e16bcb959a814c9f348431070822a6496326a4be0911c40b5a74c2bc"
19+
end
20+
1621
resource "pyserial" do
1722
url "https://files.pythonhosted.org/packages/1e/7d/ae3f0a63f41e4d2f6cb66a5b57197850f919f59e558159a4dd3a818f5082/pyserial-3.5.tar.gz"
1823
sha256 "3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb"
1924
end
2025

2126
def install
2227
virtualenv_install_with_resources
28+
29+
# Build an `:all` bottle.
30+
usr_local_files = %w[
31+
platformdirs/unix.py
32+
platformdirs-4.3.8.dist-info/METADATA
33+
].map { |file| libexec/Language::Python.site_packages("python3")/file }
34+
inreplace usr_local_files, "/usr/local", HOMEBREW_PREFIX
35+
36+
opt_homebrew_files = %w[
37+
platformdirs/macos.py
38+
].map { |file| libexec/Language::Python.site_packages("python3")/file }
39+
inreplace opt_homebrew_files, "/opt/homebrew", HOMEBREW_PREFIX
2340
end
2441

2542
test do

0 commit comments

Comments
 (0)