diff --git a/devel/Makefile b/devel/Makefile index 5e4cef7c470a..463b76e4fe12 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4260,6 +4260,7 @@ SUBDIR += py-buildbot-www SUBDIR += py-bullet3 SUBDIR += py-cabby + SUBDIR += py-cachecontrol SUBDIR += py-cached-property SUBDIR += py-cachetools SUBDIR += py-calendar diff --git a/devel/py-cachecontrol/Makefile b/devel/py-cachecontrol/Makefile new file mode 100644 index 000000000000..06204d73e14c --- /dev/null +++ b/devel/py-cachecontrol/Makefile @@ -0,0 +1,32 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= cachecontrol +PORTVERSION= 0.12.6 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= CacheControl-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= httplib2 caching for requests + +LICENSE= APACHE20 + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack>=0.5.2:devel/py-msgpack@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +OPTIONS_DEFINE= LOCKFILE REDIS +OPTIONS_DEFAULT=LOCKFILE +LOCKFILE_DESC= Lockfile support +REDIS_DESC= Redis support + +LOCKFILE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lockfile>=0.9:devel/py-lockfile@${PY_FLAVOR} +REDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}redis>=2.10.5:databases/py-redis@${PY_FLAVOR} + +.include diff --git a/devel/py-cachecontrol/distinfo b/devel/py-cachecontrol/distinfo new file mode 100644 index 000000000000..4b948179b5bf --- /dev/null +++ b/devel/py-cachecontrol/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1577626013 +SHA256 (CacheControl-0.12.6.tar.gz) = be9aa45477a134aee56c8fac518627e1154df063e85f67d4f83ce0ccc23688e8 +SIZE (CacheControl-0.12.6.tar.gz) = 14616 diff --git a/devel/py-cachecontrol/pkg-descr b/devel/py-cachecontrol/pkg-descr new file mode 100644 index 000000000000..d8137b960cc7 --- /dev/null +++ b/devel/py-cachecontrol/pkg-descr @@ -0,0 +1,7 @@ +CacheControl is a port of the caching algorithms in httplib2 for use with +requests session object. + +It was written because httplib2's better support for caching is often mitigated +by its lack of thread safety. The same is true of requests in terms of caching. + +WWW: https://github.com/ionrock/cachecontrol