summaryrefslogtreecommitdiff
path: root/databases/py-snowflake-connector-python
diff options
context:
space:
mode:
authorPat Maddox <pat@patmaddox.com>2023-10-21 22:32:01 +0200
committerKurt Jaeger <pi@FreeBSD.org>2023-10-21 22:32:47 +0200
commit1e97857613486223c16217074e7aa8d212ca375e (patch)
tree75863710609072e55fc1ebec7b248623a353befa /databases/py-snowflake-connector-python
parentdevel/sdts++: Mark DEPRECATED (diff)
databases/py-snowflake-connector-python: new port
The Snowflake Connector for Python conforms to the Python DB API 2.0 specification. The Snowflake Connector for Python provides an interface for developing Python applications that can connect to Snowflake and perform all standard operations. It provides a programming alternative to developing applications in Java or C/C++ using the Snowflake JDBC or ODBC drivers. The connector has no dependencies on JDBC or ODBC. It can be installed using pip on Linux, Mac OSX, and Windows platforms where Python 3.8.0 (or higher) is installed. PR: 274576 Author: Pat Maddox <pat@patmaddox.com>
Diffstat (limited to 'databases/py-snowflake-connector-python')
-rw-r--r--databases/py-snowflake-connector-python/Makefile42
-rw-r--r--databases/py-snowflake-connector-python/distinfo3
-rw-r--r--databases/py-snowflake-connector-python/pkg-descr11
3 files changed, 56 insertions, 0 deletions
diff --git a/databases/py-snowflake-connector-python/Makefile b/databases/py-snowflake-connector-python/Makefile
new file mode 100644
index 000000000000..5a0cee0ff8a9
--- /dev/null
+++ b/databases/py-snowflake-connector-python/Makefile
@@ -0,0 +1,42 @@
+PORTNAME= snowflake-connector-python
+PORTVERSION= 3.2.1
+CATEGORIES= databases python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= pat@patmaddox.com
+COMMENT= Snowflake Connector for Python
+WWW= https://github.com/snowflakedb/snowflake-connector-python
+
+LICENSE= APACHE20
+
+BUILD_DEPENDS= ${PY_DEPENDS} \
+ ${PYTHON_PKGNAMEPREFIX}cython3>0:lang/cython3@${PY_FLAVOR}
+
+RUN_DEPENDS= ${PY_DEPENDS}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asn1crypto>0.24.0,<2.0.0:devel/py-asn1crypto@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}cffi>=1.9,<2:devel/py-cffi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}cryptography>=3.1.0:security/py-cryptography@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}oscrypto<2.0:security/py-oscrypto@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}openssl>=16.2.0:security/py-openssl@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pycryptodomex>=3.5.1<4.0:security/py-pycryptodomex@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyjwt<3.0:www/py-pyjwt@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytz>0:devel/py-pytz@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests<3.0:www/py-requests@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}importlib-metadata>0:devel/py-importlib-metadata@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}charset-normalizer>=2,<4:textproc/py-charset-normalizer@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}idna>=2.5,<4.0:dns/py-idna@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}urllib3>=1.21.1:net/py-urllib3@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}certifi>=2017.4.17:security/py-certifi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}typing-extensions>=4.3,<5.0:devel/py-typing-extensions@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}filelock>=3.5,<4.0:sysutils/py-filelock@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}sortedcontainers>=2.4.0:devel/py-sortedcontainers@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}platformdirs>=2.6.0,<4.0.0:devel/py-platformdirs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tomlkit>0:textproc/py-tomlkit@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/databases/py-snowflake-connector-python/distinfo b/databases/py-snowflake-connector-python/distinfo
new file mode 100644
index 000000000000..ed242d01ca82
--- /dev/null
+++ b/databases/py-snowflake-connector-python/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1697518750
+SHA256 (snowflake-connector-python-3.2.1.tar.gz) = 2f92112964e4d36c67dbcf900f0b6c4b56a4ab0b3cf44a0d166d290e867a9d8b
+SIZE (snowflake-connector-python-3.2.1.tar.gz) = 419953
diff --git a/databases/py-snowflake-connector-python/pkg-descr b/databases/py-snowflake-connector-python/pkg-descr
new file mode 100644
index 000000000000..bd32aa3fd179
--- /dev/null
+++ b/databases/py-snowflake-connector-python/pkg-descr
@@ -0,0 +1,11 @@
+The Snowflake Connector for Python conforms to the Python DB API 2.0
+specification.
+
+The Snowflake Connector for Python provides an interface for developing Python
+applications that can connect to Snowflake and perform all standard
+operations. It provides a programming alternative to developing applications in
+Java or C/C++ using the Snowflake JDBC or ODBC drivers.
+
+The connector has no dependencies on JDBC or ODBC. It can be installed using pip
+on Linux, Mac OSX, and Windows platforms where Python 3.8.0 (or higher) is
+installed.