forked from mopidy/homebrew-mopidy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-requests.rb
More file actions
22 lines (19 loc) · 787 Bytes
/
python-requests.rb
File metadata and controls
22 lines (19 loc) · 787 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class PythonRequests < Formula
desc "Python library for making HTTP requests"
homepage "http://python-requests.org/"
url "https://pypi.python.org/packages/8d/66/649f861f980c0a168dd4cccc4dd0ed8fa5bd6c1bed3bea9a286434632771/requests-2.11.0.tar.gz\#md5\=147afc07d8967cf46359701551a6cb69"
sha256 "b2ff053e93ef11ea08b0e596a1618487c4e4c5f1006d7a1706e3671c57dea385"
head "https://github.com/kennethreitz/requests.git"
depends_on :python => :recommended
depends_on :python3 => :optional
def install
Language::Python.each_python(build) do |python, _version|
system python, *Language::Python.setup_install_args(prefix)
end
end
test do
Language::Python.each_python(build) do |python, _version|
system python, "-c", "import requests"
end
end
end