Skip to content

Commit 3b4808b

Browse files
authored
Merge pull request #251391 from Homebrew/y-formulae-pypi-dsl
formulae(y*): migrate to `pypi_packages` DSL
2 parents f9db906 + 0de7a8f commit 3b4808b

File tree

6 files changed

+13
-18
lines changed

6 files changed

+13
-18
lines changed

Formula/y/yamlfix.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class Yamlfix < Formula
2020
depends_on "pydantic-core" => :no_linkage
2121
depends_on "[email protected]"
2222

23+
pypi_packages exclude_packages: "pydantic-core"
24+
2325
resource "annotated-types" do
2426
url "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz"
2527
sha256 "aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"

Formula/y/yewtube.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ class Yewtube < Formula
1919
depends_on "mplayer"
2020
depends_on "[email protected]"
2121

22+
pypi_packages exclude_packages: "certifi"
23+
2224
resource "anyio" do
2325
url "https://files.pythonhosted.org/packages/f1/b4/636b3b65173d3ce9a38ef5f0522789614e590dab6a8d505340a4efe4c567/anyio-4.10.0.tar.gz"
2426
sha256 "3f3fae35c96039744587aa5b8371e7e8e603c0702999535961dd336026973ba6"

Formula/y/ykman.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class Ykman < Formula
2525

2626
uses_from_macos "pcsc-lite"
2727

28+
pypi_packages exclude_packages: "cryptography",
29+
extra_packages: %w[jeepney secretstorage]
30+
2831
resource "click" do
2932
url "https://files.pythonhosted.org/packages/46/61/de6cd827efad202d7057d93e0fed9294b96952e188f7384832791c7b2254/click-8.3.0.tar.gz"
3033
sha256 "e7b8232224eba16f4ebe410c25ced9f7875cb5f3263ffc93cc3e8da705e229c4"

Formula/y/yle-dl.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class YleDl < Formula
2626
uses_from_macos "libxml2", since: :ventura
2727
uses_from_macos "libxslt"
2828

29+
pypi_packages exclude_packages: "certifi"
30+
2931
resource "charset-normalizer" do
3032
url "https://files.pythonhosted.org/packages/83/2d/5fd176ceb9b2fc619e63405525573493ca23441330fcdaee6bef9460e924/charset_normalizer-3.4.3.tar.gz"
3133
sha256 "6fce4b8500244f6fcb71465d4a4930d132ba9ab8e71a7859e6a5d59851068d14"

Formula/y/yt-dlp.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class YtDlp < Formula
2929
depends_on "certifi"
3030
depends_on "[email protected]"
3131

32+
pypi_packages package_name: "yt-dlp[default]",
33+
exclude_packages: "certifi"
34+
3235
resource "brotli" do
3336
url "https://files.pythonhosted.org/packages/2f/c2/f9e977608bdf958650638c3f1e28f85a1b075f075ebbe77db8555463787b/Brotli-1.1.0.tar.gz"
3437
sha256 "81de08ac11bcb85841e440c13611c00b67d3bf82698314928d0b676362546724"

pypi_formula_mappings.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -508,22 +508,5 @@
508508
"urlwatch": {
509509
"exclude_packages": ["certifi"]
510510
},
511-
"uvicorn": "uvicorn[standard]",
512-
"yamlfix": {
513-
"exclude_packages": ["pydantic-core"]
514-
},
515-
"yewtube": {
516-
"exclude_packages": ["certifi"]
517-
},
518-
"ykman": {
519-
"exclude_packages": ["cryptography"],
520-
"extra_packages": ["jeepney", "secretstorage"]
521-
},
522-
"yle-dl": {
523-
"exclude_packages": ["certifi"]
524-
},
525-
"yt-dlp": {
526-
"package_name": "yt-dlp[default]",
527-
"exclude_packages": ["certifi"]
528-
}
511+
"uvicorn": "uvicorn[standard]"
529512
}

0 commit comments

Comments
 (0)