summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradam <adam>2017-07-07 09:55:20 +0000
committeradam <adam>2017-07-07 09:55:20 +0000
commit547ad4bda8b411e266391aa5bfc160247256c935 (patch)
tree49847e497709dd05ef5f745fca8c508c79e6fc10
parent28d17a941f0dad1159084afcb1ca9ec3190c386d (diff)
downloadpkgsrc-547ad4bda8b411e266391aa5bfc160247256c935.tar.gz
Small add-on for the python requests http library. Makes use of python 3.2's
concurrent.futures or the backport for prior versions of python. The additional API and changes are minimal and strives to avoid surprises.
-rw-r--r--devel/Makefile3
-rw-r--r--devel/py-requests-futures/DESCR4
-rw-r--r--devel/py-requests-futures/Makefile23
-rw-r--r--devel/py-requests-futures/PLIST13
-rw-r--r--devel/py-requests-futures/distinfo6
5 files changed, 48 insertions, 1 deletions
diff --git a/devel/Makefile b/devel/Makefile
index 79281a57fe3..33b9135f71d 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2454 2017/07/07 07:20:54 adam Exp $
+# $NetBSD: Makefile,v 1.2455 2017/07/07 09:55:20 adam Exp $
#
COMMENT= Development utilities
@@ -2004,6 +2004,7 @@ SUBDIR+= py-repoze.lru
SUBDIR+= py-requests
SUBDIR+= py-requests-file
SUBDIR+= py-requests-ftp
+SUBDIR+= py-requests-futures
SUBDIR+= py-requests-mock
SUBDIR+= py-requests-toolbelt
SUBDIR+= py-rope
diff --git a/devel/py-requests-futures/DESCR b/devel/py-requests-futures/DESCR
new file mode 100644
index 00000000000..8d41f679789
--- /dev/null
+++ b/devel/py-requests-futures/DESCR
@@ -0,0 +1,4 @@
+Small add-on for the python requests http library. Makes use of python 3.2's
+concurrent.futures or the backport for prior versions of python.
+
+The additional API and changes are minimal and strives to avoid surprises.
diff --git a/devel/py-requests-futures/Makefile b/devel/py-requests-futures/Makefile
new file mode 100644
index 00000000000..d118f2ed4ce
--- /dev/null
+++ b/devel/py-requests-futures/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2017/07/07 09:55:20 adam Exp $
+
+DISTNAME= requests-futures-0.9.7
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= devel python
+MASTER_SITES= ${MASTER_SITE_PYPI:=r/requests-futures/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/ross/requests-futures
+COMMENT= Asynchronous Python HTTP for Humans
+LICENSE= apache-2.0
+
+DEPENDS+= ${PYPKGPREFIX}-requests>=1.2.0:../../devel/py-requests
+
+.include "../../lang/python/pyversion.mk"
+.if "${PYPKGPREFIX}" == "py27"
+DEPENDS+= ${PYPKGPREFIX}-futures>=2.1.3:../../devel/py-futures
+.endif
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-requests-futures/PLIST b/devel/py-requests-futures/PLIST
new file mode 100644
index 00000000000..29c6e2c6fa5
--- /dev/null
+++ b/devel/py-requests-futures/PLIST
@@ -0,0 +1,13 @@
+@comment $NetBSD: PLIST,v 1.1 2017/07/07 09:55:20 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/requests_futures/__init__.py
+${PYSITELIB}/requests_futures/__init__.pyc
+${PYSITELIB}/requests_futures/__init__.pyo
+${PYSITELIB}/requests_futures/sessions.py
+${PYSITELIB}/requests_futures/sessions.pyc
+${PYSITELIB}/requests_futures/sessions.pyo
diff --git a/devel/py-requests-futures/distinfo b/devel/py-requests-futures/distinfo
new file mode 100644
index 00000000000..9a1d42be95c
--- /dev/null
+++ b/devel/py-requests-futures/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2017/07/07 09:55:20 adam Exp $
+
+SHA1 (requests-futures-0.9.7.tar.gz) = 3233da0a7c22bdd21dec053fa71518acc97849e7
+RMD160 (requests-futures-0.9.7.tar.gz) = 8761e1423df9b110b30bae4c31f22b41cf2ba3be
+SHA512 (requests-futures-0.9.7.tar.gz) = 02ca972bc2215d9e3f880125013746ea2b6f238d25f7aa519665be20e3fb3e2cd69b7d6605663c3bdaf9a1abe88f76553545f5895d9defef4616115b5963bdd2
+Size (requests-futures-0.9.7.tar.gz) = 5571 bytes