forked from derekbrokeit/homebrew-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpymssql.rb
More file actions
24 lines (20 loc) · 751 Bytes
/
pymssql.rb
File metadata and controls
24 lines (20 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
class Pymssql < Formula
desc "Python DB-API interface to Microsoft SQL Server."
homepage "http://pymssql.org/"
url "https://pypi.python.org/packages/source/p/pymssql/pymssql-2.1.1.tar.gz"
sha256 "f1a1601dc3322c785733c84639d8d640c7204f9db4eab5f2a5cc908fb157140f"
head "https://github.com/pymssql/pymssql.git"
depends_on :python => :recommended
depends_on :python3 => :optional
depends_on "freetds"
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 pymssql; print(pymssql); print(pymssql.__version__)"
end
end
end