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>
This commit is contained in:
Pat Maddox
2023-10-21 22:32:47 +02:00
committed by Kurt Jaeger
parent 6ec8e3450b
commit 1e97857613
4 changed files with 57 additions and 0 deletions
+1
View File
@@ -826,6 +826,7 @@
SUBDIR += py-redis4
SUBDIR += py-rrdtool
SUBDIR += py-sispy
SUBDIR += py-snowflake-connector-python
SUBDIR += py-south
SUBDIR += py-sqlalchemy-json
SUBDIR += py-sqlalchemy-migrate
@@ -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>
@@ -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
@@ -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.