Skip to content

Commit

Permalink
new package py-oracledb (spack#36191)
Browse files Browse the repository at this point in the history
* new package py-oracledb

* py-oracledb use python3.6:
  • Loading branch information
Andrew-Dunning-NNL authored Mar 20, 2023
1 parent 2bcd4e0 commit e1752ca
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions var/spack/repos/builtin/packages/py-oracledb/package.py
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,
)

0 comments on commit e1752ca

Please sign in to comment.