diff --git a/databases/Makefile b/databases/Makefile index aa8ccbcd1a1f..570fe5a470c3 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -845,6 +845,7 @@ SUBDIR += py-redis5 SUBDIR += py-redis6 SUBDIR += py-redisvl + SUBDIR += py-redshift-connector SUBDIR += py-rrdtool SUBDIR += py-schemachange SUBDIR += py-sispy diff --git a/databases/py-redshift-connector/Makefile b/databases/py-redshift-connector/Makefile new file mode 100644 index 000000000000..0beee7491ee0 --- /dev/null +++ b/databases/py-redshift-connector/Makefile @@ -0,0 +1,35 @@ +PORTNAME= redshift-connector +PORTVERSION= 2.1.10 +DISTVERSIONPREFIX= v +CATEGORIES= databases python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Redshift interface library +WWW= https://github.com/aws/amazon-redshift-python-driver + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.7.0<5.0.0:www/py-beautifulsoup@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}boto3>=1.9.201<2.0.0:www/py-boto3@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}botocore>=1.12.201<2.0.0:devel/py-botocore@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lxml>=4.6.5:devel/py-lxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytz>=2020.1,1:devel/py-pytz@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.23.0<3.0.0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}scramp>=1.2.0<1.5.0:security/py-scramp@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +USE_GITHUB= yes +GH_ACCOUNT= aws +GH_PROJECT= amazon-redshift-python-driver + +.include diff --git a/databases/py-redshift-connector/distinfo b/databases/py-redshift-connector/distinfo new file mode 100644 index 000000000000..ea53324af524 --- /dev/null +++ b/databases/py-redshift-connector/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1765032622 +SHA256 (aws-amazon-redshift-python-driver-v2.1.10_GH0.tar.gz) = 9317e6a2c70cc68e59bf1f76d56013cc3ee1650693c61e9d6c23a41f29e0f498 +SIZE (aws-amazon-redshift-python-driver-v2.1.10_GH0.tar.gz) = 389062 diff --git a/databases/py-redshift-connector/files/patch-requirements.txt b/databases/py-redshift-connector/files/patch-requirements.txt new file mode 100644 index 000000000000..2548d97cfd6a --- /dev/null +++ b/databases/py-redshift-connector/files/patch-requirements.txt @@ -0,0 +1,11 @@ +--- requirements.txt.orig 2025-11-19 00:47:17 UTC ++++ requirements.txt +@@ -3,7 +3,7 @@ requests>=2.23.0,<3.0.0 + beautifulsoup4>=4.7.0,<5.0.0 + boto3>=1.9.201,<2.0.0 + requests>=2.23.0,<3.0.0 +-lxml>=4.6.5,<6.0.0 ++lxml>=4.6.5 + botocore>=1.12.201,<2.0.0 + packaging + setuptools diff --git a/databases/py-redshift-connector/pkg-descr b/databases/py-redshift-connector/pkg-descr new file mode 100644 index 000000000000..8704bb6925ff --- /dev/null +++ b/databases/py-redshift-connector/pkg-descr @@ -0,0 +1,10 @@ +redshift_connector is the Amazon Redshift connector for Python. Easy integration +with pandas and numpy, as well as support for numerous Amazon Redshift specific +features help you get the most out of your data. + +Supported Amazon Redshift features include: +- IAM authentication +- Identity provider (IdP) authentication +- Redshift specific data types + +This pure Python connector implements Python Database API Specification 2.0.