Skip to content

Commit cc02046

Browse files
committedNov 30, 2024··
bilix: add bilibili play_info api patch
Signed-off-by: Rui Chen <rui@chenrui.dev>
1 parent cc93d99 commit cc02046

File tree

1 file changed

+23
-16
lines changed

1 file changed

+23
-16
lines changed
 

‎Formula/b/bilix.rb

+23-16
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ class Bilix < Formula
66
url "https://files.pythonhosted.org/packages/5c/12/0f885cee77471123a3c82da85bd1934af00aed213910987bbe5b2296997d/bilix-0.18.9.tar.gz"
77
sha256 "8ab1be9bcc661369cbeba95439c09716778b6b42b2505a3eaddb45175688e247"
88
license "Apache-2.0"
9+
revision 1
910

1011
bottle do
1112
rebuild 1
@@ -32,8 +33,8 @@ class Bilix < Formula
3233
end
3334

3435
resource "anyio" do
35-
url "https://files.pythonhosted.org/packages/78/49/f3f17ec11c4a91fe79275c426658e509b07547f874b14c1a526d86a83fc8/anyio-4.6.0.tar.gz"
36-
sha256 "137b4559cbb034c477165047febb6ff83f390fc3b20bf181c1fc0a728cb8beeb"
36+
url "https://files.pythonhosted.org/packages/9f/09/45b9b7a6d4e45c6bcb5bf61d19e3ab87df68e0601fa8c5293de3542546cc/anyio-4.6.2.post1.tar.gz"
37+
sha256 "4c8bc31ccdb51c7f7bd251f51c609e038d63e34219b44aa86e47576389880b4c"
3738
end
3839

3940
resource "beautifulsoup4" do
@@ -82,13 +83,13 @@ class Bilix < Formula
8283
end
8384

8485
resource "httpcore" do
85-
url "https://files.pythonhosted.org/packages/b6/44/ed0fa6a17845fb033bd885c03e842f08c1b9406c86a2e60ac1ae1b9206a6/httpcore-1.0.6.tar.gz"
86-
sha256 "73f6dbd6eb8c21bbf7ef8efad555481853f5f6acdeaff1edb0694289269ee17f"
86+
url "https://files.pythonhosted.org/packages/6a/41/d7d0a89eb493922c37d343b607bc1b5da7f5be7e383740b4753ad8943e90/httpcore-1.0.7.tar.gz"
87+
sha256 "8551cb62a169ec7162ac7be8d4817d561f60e08eaa485234898414bb5a8a0b4c"
8788
end
8889

8990
resource "httpx" do
90-
url "https://files.pythonhosted.org/packages/78/82/08f8c936781f67d9e6b9eeb8a0c8b4e406136ea4c3d1f89a5db71d42e0e6/httpx-0.27.2.tar.gz"
91-
sha256 "f7c2be1d2f3c3c3160d441802406b206c2b76f5947b11115e6df10c6c65e66c2"
91+
url "https://files.pythonhosted.org/packages/10/df/676b7cf674dd1bdc71a64ad393c89879f75e4a0ab8395165b498262ae106/httpx-0.28.0.tar.gz"
92+
sha256 "0858d3bab51ba7e386637f22a61d8ccddaeec5f3fe4209da3a6168dbb91573e0"
9293
end
9394

9495
resource "hyperframe" do
@@ -102,8 +103,8 @@ class Bilix < Formula
102103
end
103104

104105
resource "json5" do
105-
url "https://files.pythonhosted.org/packages/91/59/51b032d53212a51f17ebbcc01bd4217faab6d6c09ed0d856a987a5f42bbc/json5-0.9.25.tar.gz"
106-
sha256 "548e41b9be043f9426776f05df8635a00fe06104ea51ed24b67f908856e151ae"
106+
url "https://files.pythonhosted.org/packages/85/3d/bbe62f3d0c05a689c711cff57b2e3ac3d3e526380adb7c781989f075115c/json5-0.10.0.tar.gz"
107+
sha256 "e66941c8f0a02026943c52c2eb34ebeb2a6f819a0be05920a6f5243cd30fd559"
107108
end
108109

109110
resource "lz4" do
@@ -127,8 +128,8 @@ class Bilix < Formula
127128
end
128129

129130
resource "protobuf" do
130-
url "https://files.pythonhosted.org/packages/b1/a4/4579a61de526e19005ceeb93e478b61d77aa38c8a85ad958ff16a9906549/protobuf-5.28.2.tar.gz"
131-
sha256 "59379674ff119717404f7454647913787034f03fe7049cbef1d74a97bb4593f0"
131+
url "https://files.pythonhosted.org/packages/6a/bb/8e59a30b83102a37d24f907f417febb58e5f544d4f124dd1edcd12e078bf/protobuf-5.29.0.tar.gz"
132+
sha256 "445a0c02483869ed8513a585d80020d012c6dc60075f96fa0563a724987b1001"
132133
end
133134

134135
resource "pycryptodome" do
@@ -142,13 +143,13 @@ class Bilix < Formula
142143
end
143144

144145
resource "pydantic" do
145-
url "https://files.pythonhosted.org/packages/a9/b7/d9e3f12af310e1120c21603644a1cd86f59060e040ec5c3a80b8f05fae30/pydantic-2.9.2.tar.gz"
146-
sha256 "d155cef71265d1e9807ed1c32b4c8deec042a44a50a4188b25ac67ecd81a9c0f"
146+
url "https://files.pythonhosted.org/packages/41/86/a03390cb12cf64e2a8df07c267f3eb8d5035e0f9a04bb20fb79403d2a00e/pydantic-2.10.2.tar.gz"
147+
sha256 "2bc2d7f17232e0841cbba4641e65ba1eb6fafb3a08de3a091ff3ce14a197c4fa"
147148
end
148149

149150
resource "pydantic-core" do
150-
url "https://files.pythonhosted.org/packages/e2/aa/6b6a9b9f8537b872f552ddd46dd3da230367754b6f707b8e1e963f515ea3/pydantic_core-2.23.4.tar.gz"
151-
sha256 "2584f7cf844ac4d970fba483a717dbe10c1c1c96a969bf65d61ffe94df1b2863"
151+
url "https://files.pythonhosted.org/packages/a6/9f/7de1f19b6aea45aeb441838782d68352e71bfa98ee6fa048d5041991b33e/pydantic_core-2.27.1.tar.gz"
152+
sha256 "62a763352879b84aa31058fc931884055fd75089cccbd9d58bb6afd01141b235"
152153
end
153154

154155
resource "pygments" do
@@ -162,8 +163,8 @@ class Bilix < Formula
162163
end
163164

164165
resource "rich" do
165-
url "https://files.pythonhosted.org/packages/aa/9e/1784d15b057b0075e5136445aaea92d23955aad2c93eaede673718a40d95/rich-13.9.2.tar.gz"
166-
sha256 "51a2c62057461aaf7152b4d611168f93a9fc73068f8ded2790f29fe2b5366d0c"
166+
url "https://files.pythonhosted.org/packages/ab/3a/0316b28d0761c6734d6bc14e770d85506c986c85ffb239e688eeaab2c2bc/rich-13.9.4.tar.gz"
167+
sha256 "439594978a49a09530cff7ebc4b5c7103ef57baf48d5ea3184f21d9a2befa098"
167168
end
168169

169170
resource "sniffio" do
@@ -181,6 +182,12 @@ class Bilix < Formula
181182
sha256 "1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"
182183
end
183184

185+
# update bilibili play_info api, upstream pr ref, https://github.com/HFrost0/bilix/pull/244
186+
patch do
187+
url "https://github.com/HFrost0/bilix/commit/72c259d88b2fffb6cd530fce01b8c3d35fb79335.patch?full_index=1"
188+
sha256 "6f241455c6f1940626ed660d97abbcf3eecd3931cca3b6db6acd1f961649b6cb"
189+
end
190+
184191
def install
185192
virtualenv_install_with_resources
186193
end

0 commit comments

Comments
 (0)
Please sign in to comment.