new package py-oracledb (#36191)

* new package py-oracledb

* py-oracledb use python3.6:
This commit is contained in:
Andrew-Dunning-NNL 2023-03-20 14:14:05 -04:00 committed by GitHub
parent 2bcd4e0ecd
commit e1752ca382
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
)