@@ -3,8 +3,8 @@ class Mpremote < Formula
3
3
4
4
desc "Tool for interacting remotely with MicroPython devices"
5
5
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 "
8
8
license "MIT"
9
9
10
10
bottle do
@@ -13,13 +13,30 @@ class Mpremote < Formula
13
13
14
14
15
15
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
+
16
21
resource "pyserial" do
17
22
url "https://files.pythonhosted.org/packages/1e/7d/ae3f0a63f41e4d2f6cb66a5b57197850f919f59e558159a4dd3a818f5082/pyserial-3.5.tar.gz"
18
23
sha256 "3c77e014170dfffbd816e6ffc205e9842efb10be9f58ec16d3e8675b4925cddb"
19
24
end
20
25
21
26
def install
22
27
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
23
40
end
24
41
25
42
test do
0 commit comments