forked from spack/spack
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new package py-oracledb (spack#36191)
* new package py-oracledb * py-oracledb use python3.6:
- Loading branch information
1 parent
2bcd4e0
commit e1752ca
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2013-2022 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.package import * | ||
|
||
|
||
class PyOracledb(PythonPackage): | ||
"""Python-oracledb is the new name for the Python cx_Oracle driver. | ||
The python-oracledb driver is an open source module that enables | ||
Python programs to access Oracle Database.""" | ||
|
||
homepage = "https://oracle.github.io/python-oracledb/" | ||
pypi = "oracledb/oracledb-1.2.2.tar.gz" | ||
|
||
version("1.2.2", sha256="dd9f63084e44642b484a46b2fcfb4fc921f39facf494a1bab00628fa6409f4fc") | ||
|
||
depends_on("py-setuptools@40.6.0:", type="build") | ||
depends_on("py-cryptography@3.2.1:", type=("build", "run")) | ||
depends_on("py-cython", type="build") | ||
depends_on("python@3.6:", type=("build", "run")) | ||
depends_on("oracle-instant-client", type="run", when="impl=thick") | ||
|
||
variant( | ||
"impl", | ||
default="thick", | ||
description="Client Implementation", | ||
values=("thick", "thin"), | ||
multi=False, | ||
) |