py-oracledb: add v1.4.2, v2.3.0, v2.4.1 (#47313)

the py-oracledb package only has a single outdated version available in its recipe. this PR adds a much broader range of versions and their corresponding checksums.

* add more versions of py-oracledb
* update py-oracledb recipe
* add py-cython version dependencies
* tweak py-cython version dependencies
* remove older versions of py-oracledb
This commit is contained in:
v 2024-11-11 09:10:09 -06:00 committed by GitHub
parent f458392c1b
commit 33dd894eff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,17 +12,23 @@ class PyOracledb(PythonPackage):
Python programs to access Oracle Database."""
homepage = "https://oracle.github.io/python-oracledb/"
pypi = "oracledb/oracledb-1.2.2.tar.gz"
pypi = "oracledb/oracledb-1.4.2.tar.gz"
license("Apache-2.0")
version("1.2.2", sha256="dd9f63084e44642b484a46b2fcfb4fc921f39facf494a1bab00628fa6409f4fc")
version("2.4.1", sha256="bd5976bef0e466e0f9d1b9f6531fb5b8171dc8534717ccb04b26e680b6c7571d")
version("2.3.0", sha256="b9b0c4ec280b10063e6789bed23ddc2435ae98569ebe64e0b9a270780b9103d5")
version("1.4.2", sha256="e28ed9046f2735dc2dd5bbcdf3667f284e384e0ec7eed3eeb3798fa8a7d47e36")
depends_on("c", type="build") # generated
depends_on("python@3.8:3.13", when="@2.4:")
depends_on("python@3.8:3.12", when="@2.0:2.3")
depends_on("python@3.8:3.11", when="@:1.4")
depends_on("c", type="build")
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("py-cython@3:", type="build")
depends_on("python@3.6:", type=("build", "run"))
depends_on("oracle-instant-client", type="run", when="impl=thick")