git: 1e9785761348 - main - databases/py-snowflake-connector-python: new port

From: Kurt Jaeger <pi_at_FreeBSD.org>
Date: Sat, 21 Oct 2023 20:32:53 UTC
The branch main has been updated by pi:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1e97857613486223c16217074e7aa8d212ca375e

commit 1e97857613486223c16217074e7aa8d212ca375e
Author:     Pat Maddox <pat@patmaddox.com>
AuthorDate: 2023-10-21 20:32:01 +0000
Commit:     Kurt Jaeger <pi@FreeBSD.org>
CommitDate: 2023-10-21 20:32:47 +0000

    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>
---
 databases/Makefile                                |  1 +
 databases/py-snowflake-connector-python/Makefile  | 42 +++++++++++++++++++++++
 databases/py-snowflake-connector-python/distinfo  |  3 ++
 databases/py-snowflake-connector-python/pkg-descr | 11 ++++++
 4 files changed, 57 insertions(+)

diff --git a/databases/Makefile b/databases/Makefile
index 131d57e56350..85b448bf071a 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -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
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.