summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-11-27 10:32:54 +0800
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-11-27 10:32:54 +0800
commit611f412a571cc026638b6e088b6dbc51ed0f9cb1 (patch)
tree36481d4f40107b0c3381c3b50d04e40334805837 /databases
parent*/Makefile: Sort SUBDIRs (diff)
databases/py-cymysql: Add py-cymysql 1.0.3
CyMySQL contains a python MySQL client library. It is a fork project from PyMySQL. CyMySQL is accerarated by Cython and supports Python versions 2 and 3.
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/py-cymysql/Makefile23
-rw-r--r--databases/py-cymysql/distinfo3
-rw-r--r--databases/py-cymysql/pkg-descr5
4 files changed, 32 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index dd01bdb43647..fb562ca9e84d 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -757,6 +757,7 @@
SUBDIR += py-carbon
SUBDIR += py-cassandra-driver
SUBDIR += py-couchdb
+ SUBDIR += py-cymysql
SUBDIR += py-databases
SUBDIR += py-dbf
SUBDIR += py-dbt-core
diff --git a/databases/py-cymysql/Makefile b/databases/py-cymysql/Makefile
new file mode 100644
index 000000000000..70295681169d
--- /dev/null
+++ b/databases/py-cymysql/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= cymysql
+PORTVERSION= 1.0.3
+CATEGORIES= databases python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Python MySQL Driver using Cython
+WWW= https://github.com/nakagami/CyMySQL
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent cython pep517
+
+post-install:
+ ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
+.include <bsd.port.mk>
diff --git a/databases/py-cymysql/distinfo b/databases/py-cymysql/distinfo
new file mode 100644
index 000000000000..0192d8612489
--- /dev/null
+++ b/databases/py-cymysql/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1732260888
+SHA256 (cymysql-1.0.3.tar.gz) = 26467822780bf8301f1503eea106d1ce7ee06709f336f35dd593ff21e6d5b1ce
+SIZE (cymysql-1.0.3.tar.gz) = 52719
diff --git a/databases/py-cymysql/pkg-descr b/databases/py-cymysql/pkg-descr
new file mode 100644
index 000000000000..76070bd147fb
--- /dev/null
+++ b/databases/py-cymysql/pkg-descr
@@ -0,0 +1,5 @@
+CyMySQL contains a python MySQL client library.
+
+It is a fork project from PyMySQL.
+
+CyMySQL is accerarated by Cython and supports Python versions 2 and 3.