git: 093cff0cd033 - main - databases/py-oracledb: add
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 24 Jun 2026 20:28:21 UTC
The branch main has been updated by vishwin:
URL: https://cgit.FreeBSD.org/ports/commit/?id=093cff0cd033f3f115f6adf5c8d068df3f1bd7e3
commit 093cff0cd033f3f115f6adf5c8d068df3f1bd7e3
Author: Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2026-06-24 20:07:07 +0000
Commit: Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2026-06-24 20:27:06 +0000
databases/py-oracledb: add
Event: Halifax Hackathon 202606
---
databases/Makefile | 1 +
databases/py-oracledb/Makefile | 24 +++++++++++++++++++++++
databases/py-oracledb/distinfo | 3 +++
databases/py-oracledb/files/patch-pyproject.toml | 25 ++++++++++++++++++++++++
databases/py-oracledb/files/patch-setup.cfg | 15 ++++++++++++++
databases/py-oracledb/pkg-descr | 5 +++++
6 files changed, 73 insertions(+)
diff --git a/databases/Makefile b/databases/Makefile
index a1d6c7b50edf..fc30b221cc6c 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -799,6 +799,7 @@
SUBDIR += py-mycli
SUBDIR += py-mysql-connector-python
SUBDIR += py-mysqlclient
+ SUBDIR += py-oracledb
SUBDIR += py-ormar
SUBDIR += py-oxyde
SUBDIR += py-oxyde-core
diff --git a/databases/py-oracledb/Makefile b/databases/py-oracledb/Makefile
new file mode 100644
index 000000000000..ea04c31650d2
--- /dev/null
+++ b/databases/py-oracledb/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= oracledb
+DISTVERSION= 4.0.1
+CATEGORIES= databases python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= python@FreeBSD.org
+COMMENT= Python interface to Oracle database
+WWW= https://oracle.github.io/python-oracledb
+
+LICENSE= APACHE20
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.14.0:devel/py-typing-extensions@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}anyio>0:devel/py-anyio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}numpy>0:math/py-numpy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyarrow>0:databases/py-pyarrow@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist cryptography cython pep517 pytest
+
+.include <bsd.port.mk>
diff --git a/databases/py-oracledb/distinfo b/databases/py-oracledb/distinfo
new file mode 100644
index 000000000000..f97f8f70eac3
--- /dev/null
+++ b/databases/py-oracledb/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1782325415
+SHA256 (oracledb-4.0.1.tar.gz) = 34bbea44423ed8b24093aa859ca7ee9b6e76ea490f9acdc5f6ff01aa1083e343
+SIZE (oracledb-4.0.1.tar.gz) = 879077
diff --git a/databases/py-oracledb/files/patch-pyproject.toml b/databases/py-oracledb/files/patch-pyproject.toml
new file mode 100644
index 000000000000..a379ffab6d57
--- /dev/null
+++ b/databases/py-oracledb/files/patch-pyproject.toml
@@ -0,0 +1,25 @@
+remove after devel/py-setuptools is updated to at least 77.0.0
+
+--- pyproject.toml.orig 2026-05-19 17:21:53 UTC
++++ pyproject.toml
+@@ -1,6 +1,6 @@ requires = [
+ [build-system]
+ requires = [
+- "setuptools >= 77.0.0",
++ "setuptools",
+ "wheel",
+ "cython ~= 3.2",
+ ]
+@@ -11,12 +11,6 @@ authors = [{name = "Anthony Tuininga", email = "anthon
+ description = "Python interface to Oracle Database"
+ keywords = ["Oracle", "database"]
+ authors = [{name = "Anthony Tuininga", email = "anthony.tuininga@oracle.com"}]
+-license = "UPL-1.0 OR Apache-2.0"
+-license-files = [
+- "LICENSE.txt",
+- "THIRD_PARTY_LICENSES.txt",
+- "NOTICE.txt",
+-]
+ classifiers = [
+ "Development Status :: 5 - Production/Stable",
+ "Intended Audience :: Developers",
diff --git a/databases/py-oracledb/files/patch-setup.cfg b/databases/py-oracledb/files/patch-setup.cfg
new file mode 100644
index 000000000000..39b3361f24f4
--- /dev/null
+++ b/databases/py-oracledb/files/patch-setup.cfg
@@ -0,0 +1,15 @@
+remove after devel/py-setuptools is updated to at least 77.0.0
+
+--- setup.cfg.orig 2026-05-19 17:22:01 UTC
++++ setup.cfg
+@@ -1,3 +1,10 @@
++[metadata]
++license = UPL-1.0 OR Apache-2.0
++license-files =
++ LICENSE.txt
++ THIRD_PARTY_LICENSES.txt
++ NOTICE.txt
++
+ [egg_info]
+ tag_build =
+ tag_date = 0
diff --git a/databases/py-oracledb/pkg-descr b/databases/py-oracledb/pkg-descr
new file mode 100644
index 000000000000..2415b2b49b2f
--- /dev/null
+++ b/databases/py-oracledb/pkg-descr
@@ -0,0 +1,5 @@
+The python-oracledb driver is the widely used, open-source Python
+extension module allowing Python programs to connect directly to
+Oracle Database with no extra libraries needed. The module is built
+with Cython for safety and speed. It is lightweight and high-performance.
+It is stable, well tested, and has comprehensive documentation.