From 3101a30edab3db03d469876b33b09daeff7bb4f5 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Mon, 4 Mar 2019 17:57:22 +0000 Subject: [PATCH] Add py-requests-aws4auth 0.9 requests-aws4auth is Amazon Web Services version 4 authentication for the Python Requests library. Features: - Requests authentication for all AWS services that support AWS auth v4 - Independent signing key objects - Automatic regeneration of keys when scope date boundary is passed - Support for STS temporary credentials Implements header-based authentication, GET URL parameter and POST parameter authentication are not supported. WWW: https://github.com/sam-washington/requests-aws4auth --- www/Makefile | 1 + www/py-requests-aws4auth/Makefile | 23 +++++++++++++++++++ www/py-requests-aws4auth/distinfo | 3 +++ www/py-requests-aws4auth/files/patch-setup.py | 13 +++++++++++ www/py-requests-aws4auth/pkg-descr | 13 +++++++++++ 5 files changed, 53 insertions(+) create mode 100644 www/py-requests-aws4auth/Makefile create mode 100644 www/py-requests-aws4auth/distinfo create mode 100644 www/py-requests-aws4auth/files/patch-setup.py create mode 100644 www/py-requests-aws4auth/pkg-descr diff --git a/www/Makefile b/www/Makefile index 62cd94d3d924..e0eba59dc961 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1837,6 +1837,7 @@ SUBDIR += py-recaptcha SUBDIR += py-requestbuilder SUBDIR += py-requests + SUBDIR += py-requests-aws4auth SUBDIR += py-requests-cache SUBDIR += py-requests-file SUBDIR += py-requests-futures diff --git a/www/py-requests-aws4auth/Makefile b/www/py-requests-aws4auth/Makefile new file mode 100644 index 000000000000..ab4ea194f901 --- /dev/null +++ b/www/py-requests-aws4auth/Makefile @@ -0,0 +1,23 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= requests-aws4auth +PORTVERSION= 0.9 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= AWS4 authentication for Requests + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/www/py-requests-aws4auth/distinfo b/www/py-requests-aws4auth/distinfo new file mode 100644 index 000000000000..860760df3daa --- /dev/null +++ b/www/py-requests-aws4auth/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1551681755 +SHA256 (requests-aws4auth-0.9.tar.gz) = c9973af472d6d358ee301f077608361e078642aa019785139b588d526f50a23c +SIZE (requests-aws4auth-0.9.tar.gz) = 44486 diff --git a/www/py-requests-aws4auth/files/patch-setup.py b/www/py-requests-aws4auth/files/patch-setup.py new file mode 100644 index 000000000000..c391ce5cf536 --- /dev/null +++ b/www/py-requests-aws4auth/files/patch-setup.py @@ -0,0 +1,13 @@ +--- setup.py.orig 2016-02-07 23:17:13 UTC ++++ setup.py +@@ -45,9 +45,7 @@ setup( + license='MIT License', + keywords='requests authentication amazon web services aws s3 REST', + install_requires=['requests'], +- package_data={'requests_aws4auth': ['test/requests_aws4auth_test.py', +- '../README.rst', '../LICENSE', +- '../NOTICE', '../HISTORY.rst']}, ++ package_data={'requests_aws4auth': ['test/requests_aws4auth_test.py']}, + classifiers=[ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', diff --git a/www/py-requests-aws4auth/pkg-descr b/www/py-requests-aws4auth/pkg-descr new file mode 100644 index 000000000000..ec06ece6071b --- /dev/null +++ b/www/py-requests-aws4auth/pkg-descr @@ -0,0 +1,13 @@ +requests-aws4auth is Amazon Web Services version 4 authentication for the Python +Requests library. + +Features: +- Requests authentication for all AWS services that support AWS auth v4 +- Independent signing key objects +- Automatic regeneration of keys when scope date boundary is passed +- Support for STS temporary credentials + +Implements header-based authentication, GET URL parameter and POST parameter +authentication are not supported. + +WWW: https://github.com/sam-washington/requests-aws4auth