cut v0.52.1
[Homebrew/homebrew-cask-versions.git] / Casks / python3.rb
blobb743fabf8d5a6369ceb32fce17c7b85510cb8f2c
1 cask :v1 => 'python3' do
2   # note: "3" is a trailing version number on the Cask token, which
3   # breaks our own token conventions, for consistency with Homebrew
4   version '3.4.2'
5   sha256 '5a4edfac31efd4ecd2efb4cb7203c0c36e488f1d0a20755b674b04dcb3c21e1b'
7   url "https://www.python.org/ftp/python/#{version}/python-#{version}-macosx10.6.pkg"
8   homepage 'http://www.python.org/'
9   license :oss
11   pkg "python-#{version}-macosx10.6.pkg"
13   uninstall :pkgutil => [
14                         "org.python.Python.PythonApplications-#{version.slice(/\d+\.\d+/)}",
15                         "org.python.Python.PythonDocumentation-#{version.slice(/\d+\.\d+/)}",
16                         "org.python.Python.PythonFramework-#{version.slice(/\d+\.\d+/)}",
17                         "org.python.Python.PythonUnixTools-#{version.slice(/\d+\.\d+/)}",
18                         ],
19             :delete => [
20                        "/Library/Receipts/PythonInstallPip-#{version.slice(/\d+\.\d+/)}",
21                        "/Applications/Python #{version.slice(/\d+\.\d+/)}",
22                        "/Library/Frameworks/Python.Framework/Versions/#{version.slice(/\d+\.\d+/)}",
23                        "/Library/Python/#{version.slice(/\d+\.\d+/)}",
24                        ]
25   zap :delete => "~/Library/Python/#{version.slice(/\d+\.\d+/)}"
26 end