aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorkoobs <koobs@FreeBSD.org>2013-05-13 20:38:41 +0800
committerkoobs <koobs@FreeBSD.org>2013-05-13 20:38:41 +0800
commit531d01f4dbb6fd590501940fa2763625d872c153 (patch)
treefcce7a2266b82f1baa4a805d762a42d34bcc50ec /www
parentf170d7e3f75c9cf97c190d8daf88e7962560db85 (diff)
downloadfreebsd-ports-gnome-531d01f4dbb6fd590501940fa2763625d872c153.tar.gz
freebsd-ports-gnome-531d01f4dbb6fd590501940fa2763625d872c153.tar.zst
freebsd-ports-gnome-531d01f4dbb6fd590501940fa2763625d872c153.zip
www/py-requests-oauthlib: OAuthlib authentication support for Requests [NEW PORT]
This project provides first-class OAuth library support for Requests. OAuth can seem overly complicated and it sure has its quirks. Luckily, requests-oauthlib hides most of these and let you focus at the task at hand. WWW: https://github.com/requests/requests-oauthlib Approved by: eadler, rm (mentors, implicit)
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/py-requests-oauthlib/Makefile29
-rw-r--r--www/py-requests-oauthlib/distinfo2
-rw-r--r--www/py-requests-oauthlib/files/patch-setup.py12
-rw-r--r--www/py-requests-oauthlib/pkg-descr6
-rw-r--r--www/py-requests-oauthlib/pkg-plist25
6 files changed, 75 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 76152b83c30a..c25dca4ecf2c 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1628,6 +1628,7 @@
SUBDIR += py-recaptcha
SUBDIR += py-requests
SUBDIR += py-requests-oauth-hook
+ SUBDIR += py-requests-oauthlib
SUBDIR += py-restclient
SUBDIR += py-rhodecode
SUBDIR += py-routes
diff --git a/www/py-requests-oauthlib/Makefile b/www/py-requests-oauthlib/Makefile
new file mode 100644
index 000000000000..63a3ea78f9db
--- /dev/null
+++ b/www/py-requests-oauthlib/Makefile
@@ -0,0 +1,29 @@
+# Created by: Kubilay Kocak <koobs@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= requests-oauthlib
+PORTVERSION= 0.3.1
+CATEGORIES= net python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= koobs@FreeBSD.org
+COMMENT= OAuthlib authentication support for Requests
+
+LICENSE= ISCL
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}oauthlib>=0.3.7:${PORTSDIR}/security/py-oauthlib \
+ ${PYTHON_PKGNAMEPREFIX}requests>=0:${PORTSDIR}/www/py-requests
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock
+
+USE_GITHUB= yes
+GH_ACCOUNT= requests
+GH_TAGNAME= v${PORTVERSION}
+GH_COMMIT= a7e6030
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= easy_install
+
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+
+.include <bsd.port.mk>
diff --git a/www/py-requests-oauthlib/distinfo b/www/py-requests-oauthlib/distinfo
new file mode 100644
index 000000000000..d5dfad4ecf2f
--- /dev/null
+++ b/www/py-requests-oauthlib/distinfo
@@ -0,0 +1,2 @@
+SHA256 (requests-oauthlib-0.3.1.tar.gz) = 2befccd11fb8e7170863ca678db11df6c3efb899d9a96124699e1187159f4329
+SIZE (requests-oauthlib-0.3.1.tar.gz) = 13811
diff --git a/www/py-requests-oauthlib/files/patch-setup.py b/www/py-requests-oauthlib/files/patch-setup.py
new file mode 100644
index 000000000000..ded2543b6486
--- /dev/null
+++ b/www/py-requests-oauthlib/files/patch-setup.py
@@ -0,0 +1,12 @@
+--- ./setup.py.orig 2013-05-04 16:37:49.000000000 +1000
++++ ./setup.py 2013-05-04 17:04:12.135652732 +1000
+@@ -43,6 +43,9 @@
+ 'Programming Language :: Python :: 2.6',
+ 'Programming Language :: Python :: 2.7',
+ ),
++ zip_safe=False,
++ tests_require = ['mock'],
++ test_suite="tests",
+ )
+
+
diff --git a/www/py-requests-oauthlib/pkg-descr b/www/py-requests-oauthlib/pkg-descr
new file mode 100644
index 000000000000..6b66c574163c
--- /dev/null
+++ b/www/py-requests-oauthlib/pkg-descr
@@ -0,0 +1,6 @@
+This project provides first-class OAuth library support for Requests.
+
+OAuth can seem overly complicated and it sure has its quirks. Luckily,
+requests_oauthlib hides most of these and let you focus at the task at hand.
+
+WWW: https://github.com/requests/requests-oauthlib
diff --git a/www/py-requests-oauthlib/pkg-plist b/www/py-requests-oauthlib/pkg-plist
new file mode 100644
index 000000000000..104dfd88189a
--- /dev/null
+++ b/www/py-requests-oauthlib/pkg-plist
@@ -0,0 +1,25 @@
+@comment $FreeBSD$
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/core.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/core.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/core.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_auth.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_session.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_session.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_auth.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth1_session.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth1_session.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_auth.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth2_session.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib/oauth1_session.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/requests_oauthlib
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%