Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arjun: vendor python resources #162678

Merged
merged 2 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 29 additions & 4 deletions Formula/a/arjun.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class Arjun < Formula
include Language::Python::Virtualenv

desc "HTTP parameter discovery suite"
homepage "https://github.com/s0md3v/Arjun"
url "https://files.pythonhosted.org/packages/83/2d/e521035e38c81c9d7f4aa02a287dddeb163ad51ebca28bef7563fc503c07/arjun-2.2.2.tar.gz"
Expand All @@ -16,17 +18,40 @@ class Arjun < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "26c2d40b7150decd2cbb95201c8eff966fc477d3ce3612275c7e60984882486d"
end

depends_on "python-setuptools" => :build
depends_on "python-dicttoxml"
depends_on "python-requests"
depends_on "python-certifi"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keeping certifi as a separate dep based on #157500 (comment)

depends_on "[email protected]"

def python3
"python3.12"
end

resource "charset-normalizer" do
url "https://files.pythonhosted.org/packages/63/09/c1bc53dab74b1816a00d8d030de5bf98f724c52c1635e07681d312f20be8/charset-normalizer-3.3.2.tar.gz"
sha256 "f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5"
end

resource "dicttoxml" do
url "https://files.pythonhosted.org/packages/ee/c9/3132427f9e64d572688e6a1cbe3d542d1a03f676b81fb600f3d1fd7d2ec5/dicttoxml-1.7.16.tar.gz"
sha256 "6f36ce644881db5cd8940bee9b7cb3f3f6b7b327ba8a67d83d3e2caa0538bf9d"
end

resource "idna" do
url "https://files.pythonhosted.org/packages/bf/3f/ea4b9117521a1e9c50344b909be7886dd00a519552724809bb1f486986c2/idna-3.6.tar.gz"
sha256 "9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca"
end

resource "requests" do
url "https://files.pythonhosted.org/packages/9d/be/10918a2eac4ae9f02f6cfe6414b7a155ccd8f7f9d4380d62fd5b955065c3/requests-2.31.0.tar.gz"
sha256 "942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"
end

resource "urllib3" do
url "https://files.pythonhosted.org/packages/e2/cc/abf6746cc90bc52df4ba730f301b89b3b844d6dc133cb89a01cfe2511eb9/urllib3-2.2.0.tar.gz"
sha256 "051d961ad0c62a94e50ecf1af379c3aba230c66c710493493560c0c223c49f20"
end

def install
system python3, "-m", "pip", "install", *std_pip_args, "."
virtualenv_install_with_resources
end

test do
Expand Down
2 changes: 1 addition & 1 deletion pypi_formula_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"exclude_packages": ["click", "markdown", "PyYAML", "requests-oauthlib"]
},
"arjun": {
"exclude_packages": ["dicttoxml", "requests"]
"exclude_packages": ["certifi"]
},
"arxiv_latex_cleaner": {
"exclude_packages": ["absl-py", "pillow", "regex", "six", "PyYAML"]
Expand Down
Loading