diff options
author | ajw1980 <ajw1980@gmail.com> | 2019-03-26 15:09:55 -0500 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2019-03-26 15:09:55 -0500 |
commit | 48a8ee03631589e6c85ba3d5358cc326a57ba43a (patch) | |
tree | 16b0d71f6a560b30cd29a1a08086740c40a99bc0 | |
parent | 99a51e7ed12cdd2bf81412b87f55b54cdfd8480b (diff) | |
download | spack-48a8ee03631589e6c85ba3d5358cc326a57ba43a.tar.gz spack-48a8ee03631589e6c85ba3d5358cc326a57ba43a.tar.bz2 spack-48a8ee03631589e6c85ba3d5358cc326a57ba43a.tar.xz spack-48a8ee03631589e6c85ba3d5358cc326a57ba43a.zip |
New package: py-pyodbc (#10972)
-rw-r--r-- | var/spack/repos/builtin/packages/py-pyodbc/package.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyodbc/package.py b/var/spack/repos/builtin/packages/py-pyodbc/package.py new file mode 100644 index 0000000000..473000c471 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pyodbc/package.py @@ -0,0 +1,28 @@ +# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class PyPyodbc(PythonPackage): + """A Python DB API 2 module for ODBC. This project provides an up-to-date, + convenient interface to ODBC using native data types like datetime and + decimal.""" + + homepage = "https://github.com/mkleehammer/pyodbc" + url = "https://pypi.io/packages/source/p/pyodbc/pyodbc-4.0.26.tar.gz" + + version('4.0.26', sha256='e52700b5d24a846483b5ab80acd9153f8e593999c9184ffea11596288fb33de3') + + depends_on('python@2.7:2.8,3.4:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('unixodbc', type=('build', 'run')) + + phases = ['build_ext', 'install'] + + def build_ext_args(self, spec, prefix): + + args = (['--rpath=%s' % (spec['unixodbc'].prefix.lib)]) + return args |