sslyze 1.3.0

depend on openssl@1.1

Closes #21847.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
This commit is contained in:
ilovezfs 2017-12-18 03:41:18 -08:00 committed by FX Coudert
parent 9db07f03c9
commit 0fb2877c03

View file

@ -5,12 +5,12 @@ class Sslyze < Formula
homepage "https://github.com/nabla-c0d3/sslyze"
stable do
url "https://github.com/nabla-c0d3/sslyze/archive/1.2.0.tar.gz"
sha256 "8dc5b3fa48e447ac6f878cf1c443ccd472616a6b0054961b390efb5e36614fa4"
url "https://github.com/nabla-c0d3/sslyze/archive/1.3.0.tar.gz"
sha256 "fa78697f706c123ada3afa09c7210af4172fdba39580516390711f3548b9972d"
resource "nassl" do
url "https://github.com/nabla-c0d3/nassl/archive/1.0.1.tar.gz"
sha256 "fee22bcf94a869a8429432d31fd14cebe0cb426f43529065fc1de854ffa3fb92"
url "https://github.com/nabla-c0d3/nassl/archive/1.0.2.tar.gz"
sha256 "145c150d5ab852fb9efe24a32cbfab0ebd0036d1fd6ba8756f2f9d68dd2e7959"
end
end
@ -31,10 +31,11 @@ class Sslyze < Formula
depends_on :arch => :x86_64
depends_on :python if MacOS.version <= :snow_leopard
depends_on "openssl@1.1"
resource "asn1crypto" do
url "https://files.pythonhosted.org/packages/31/53/8bca924b30cb79d6d70dbab6a99e8731d1e4dd3b090b7f3d8412a8d8ffbc/asn1crypto-0.23.0.tar.gz"
sha256 "0874981329cfebb366d6584c3d16e913f2a0eb026c9463efcc4aaf42a9d94d70"
url "https://files.pythonhosted.org/packages/fc/f1/8db7daa71f414ddabfa056c4ef792e1461ff655c2ae2928a2b675bfed6b4/asn1crypto-0.24.0.tar.gz"
sha256 "9d5c20441baf0cb60a4ac34cc447c6c189024b6b4c6cd7877034f4965c464e49"
end
resource "cffi" do
@ -43,8 +44,8 @@ class Sslyze < Formula
end
resource "cryptography" do
url "https://files.pythonhosted.org/packages/2a/0c/31bd69469e90035381f0197b48bf71032991d9f07a7e444c311b4a23a3df/cryptography-1.9.tar.gz"
sha256 "5518337022718029e367d982642f3e3523541e098ad671672a90b82474c84882"
url "https://files.pythonhosted.org/packages/78/c5/7188f15a92413096c93053d5304718e1f6ba88b818357d05d19250ebff85/cryptography-2.1.4.tar.gz"
sha256 "e4d967371c5b6b2e67855066471d844c5d52d210c36c28d49a8507b96e2c5291"
end
resource "enum34" do
@ -58,8 +59,8 @@ class Sslyze < Formula
end
resource "ipaddress" do
url "https://files.pythonhosted.org/packages/4e/13/774faf38b445d0b3a844b65747175b2e0500164b7c28d78e34987a5bfe06/ipaddress-1.0.18.tar.gz"
sha256 "5d8534c8e185f2d8a1fda1ef73f2c8f4b23264e8e30063feeb9511d492a413e1"
url "https://files.pythonhosted.org/packages/f0/ba/860a4a3e283456d6b7e2ab39ce5cf11a3490ee1a363652ac50abf9f0f5df/ipaddress-1.0.19.tar.gz"
sha256 "200d8686011d470b5e4de207d803445deee427455cd0cb7c982b68cf82524f81"
end
resource "pycparser" do
@ -73,8 +74,8 @@ class Sslyze < Formula
end
resource "tls-parser" do
url "https://files.pythonhosted.org/packages/a3/77/6e917d656fa2b017011347a1dd0a840c2247cb9c48fa6853104626435273/tls_parser-1.1.1.tar.gz"
sha256 "e2406578f14c57dde82c8e410c30e6ebf85acda16a0fdcf1b965e574b3681c4e"
url "https://files.pythonhosted.org/packages/e1/4b/e513b1fc7a75cdb9fffb3969598d978e586a7d01a90c8fbbe95be741a2b6/tls_parser-1.2.0.tar.gz"
sha256 "c0c9de56a5aef2d56db18f23d0e29970974e6b53ec52e552404d3eca20f55ad6"
end
resource "typing" do
@ -102,7 +103,7 @@ class Sslyze < Formula
venv = virtualenv_create(libexec)
res = resources.map(&:name).to_set
res -= %w[cryptography nassl openssl-legacy openssl-modern zlib]
res -= %w[nassl openssl-legacy openssl-modern zlib]
res.each do |r|
venv.pip_install resource(r)
@ -130,9 +131,6 @@ class Sslyze < Formula
end
system "python", "run_tests.py"
venv.pip_install nassl_path
ENV.prepend "CPPFLAGS", "-I#{nassl_path}/openssl-tls1.3-draft-18/include"
ENV.prepend "LDFLAGS", "-L#{nassl_path}/openssl-tls1.3-draft-18"
venv.pip_install resource("cryptography")
end
venv.pip_install_and_link buildpath
system "python", "run_tests.py"