Skip to content

Commit 90a1a24

Browse files
authored
Merge pull request #251475 from Homebrew/h-formulae-pypi-dsl
formulae(h*): migrate to `pypi_packages` DSL
2 parents b5d9e46 + c9816f9 commit 90a1a24

File tree

7 files changed

+15
-22
lines changed

7 files changed

+15
-22
lines changed

Formula/h/harlequin.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ class Harlequin < Formula
3131
depends_on "patchelf" => :build # for pyarrow
3232
end
3333

34+
pypi_packages package_name: "harlequin[mysql,odbc,postgres]",
35+
exclude_packages: %w[numpy psycopg-binary tree-sitter-languages],
36+
extra_packages: "psycopg-c"
37+
3438
resource "click" do
3539
url "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz"
3640
sha256 "ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a"

Formula/h/hatch.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class Hatch < Formula
2626
depends_on "pycparser"
2727
end
2828

29+
pypi_packages exclude_packages: %w[certifi cryptography uv]
30+
2931
resource "anyio" do
3032
url "https://files.pythonhosted.org/packages/c6/78/7d432127c41b50bccba979505f272c16cbcadcc33645d5fa3a738110ae75/anyio-4.11.0.tar.gz"
3133
sha256 "82a8d0b81e318cc5ce71a5f1f8b5c4e63619620b63141ef8c995fa0db95a57c4"

Formula/h/howdoi.rb

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

29+
pypi_packages exclude_packages: %w[certifi cryptography]
30+
2931
resource "appdirs" do
3032
url "https://files.pythonhosted.org/packages/d7/d8/05696357e0311f5b5c316d7b95f46c669dd9c15aaeecbb48c7d0aeb88c40/appdirs-1.4.4.tar.gz"
3133
sha256 "7d5d0167b2b1ba821647616af46a749d1c653740dd0d2415100fe26e27afdf41"

Formula/h/http-prompt.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class HttpPrompt < Formula
2323
depends_on "libyaml"
2424
depends_on "[email protected]"
2525

26+
pypi_packages exclude_packages: "certifi"
27+
2628
resource "charset-normalizer" do
2729
url "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz"
2830
sha256 "94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a"

Formula/h/httpie.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class Httpie < Formula
2222
depends_on "certifi"
2323
depends_on "[email protected]"
2424

25+
pypi_packages exclude_packages: "certifi"
26+
2527
resource "charset-normalizer" do
2628
url "https://files.pythonhosted.org/packages/83/2d/5fd176ceb9b2fc619e63405525573493ca23441330fcdaee6bef9460e924/charset_normalizer-3.4.3.tar.gz"
2729
sha256 "6fce4b8500244f6fcb71465d4a4930d132ba9ab8e71a7859e6a5d59851068d14"

Formula/h/huggingface-cli.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class HuggingfaceCli < Formula
2727
depends_on "openssl@3"
2828
end
2929

30+
pypi_packages package_name: "huggingface_hub[cli]",
31+
exclude_packages: "certifi"
32+
3033
resource "charset-normalizer" do
3134
url "https://files.pythonhosted.org/packages/13/69/33ddede1939fdd074bce5434295f38fae7136463422fe4fd3e0e89b98062/charset_normalizer-3.4.4.tar.gz"
3235
sha256 "94537985111c35f28720e43603b8e7b43a6ecfb2ce1d3058bbe955b73404e21a"

pypi_formula_mappings.json

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,4 @@
11
{
2-
"harlequin": {
3-
"package_name": "harlequin[mysql,odbc,postgres]",
4-
"exclude_packages": ["numpy", "psycopg-binary", "tree-sitter-languages"],
5-
"extra_packages": ["psycopg-c"]
6-
},
7-
"hatch": {
8-
"exclude_packages": ["certifi", "cryptography", "uv"]
9-
},
10-
"howdoi": {
11-
"exclude_packages": ["certifi", "cryptography"]
12-
},
13-
"http-prompt": {
14-
"exclude_packages": ["certifi"]
15-
},
16-
"httpie": {
17-
"package_name": "httpie",
18-
"exclude_packages": ["certifi"]
19-
},
20-
"huggingface-cli": {
21-
"package_name": "huggingface_hub[cli]",
22-
"exclude_packages": ["certifi"]
23-
},
242
"qtwebengine": {
253
"package_name": "",
264
"extra_packages": ["html5lib"]

0 commit comments

Comments
 (0)