diff options
author | koobs <koobs@FreeBSD.org> | 2017-10-26 19:34:01 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2017-10-26 19:34:01 +0800 |
commit | e737e305a93bfe7676e7e027c75ef4bcd6d7783b (patch) | |
tree | 02b95bb68a4efa5ecbbc08df1578c9cd5a43120c /www | |
parent | 8ae712298363486976e3e9c8804bbee13ce68f4d (diff) | |
download | freebsd-ports-gnome-e737e305a93bfe7676e7e027c75ef4bcd6d7783b.tar.gz freebsd-ports-gnome-e737e305a93bfe7676e7e027c75ef4bcd6d7783b.tar.zst freebsd-ports-gnome-e737e305a93bfe7676e7e027c75ef4bcd6d7783b.zip |
[NEW] www/py-requests-cache: Persistent cache for requests library
Requests-cache is a transparent persistent cache for requests (version
>= 1.1.0) library.
Features:
* Transparent caching
* Persistence (with support for SQLite, MongoDB or Redis)
* Cached object expiration
WWW: https://github.com/reclosedev/requests-cache
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/py-requests-cache/Makefile | 29 | ||||
-rw-r--r-- | www/py-requests-cache/distinfo | 3 | ||||
-rw-r--r-- | www/py-requests-cache/pkg-descr | 10 |
4 files changed, 43 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index e134db3d6bab..e56e0306518d 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1812,6 +1812,7 @@ SUBDIR += py-recaptcha SUBDIR += py-requestbuilder SUBDIR += py-requests + SUBDIR += py-requests-cache SUBDIR += py-requests-file SUBDIR += py-requests-futures SUBDIR += py-requests-mock diff --git a/www/py-requests-cache/Makefile b/www/py-requests-cache/Makefile new file mode 100644 index 000000000000..27d57bbe67ee --- /dev/null +++ b/www/py-requests-cache/Makefile @@ -0,0 +1,29 @@ +# Created by: Kubilay Kocak <koobs@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= requests-cache +PORTVERSION= 0.4.13 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= koobs@FreeBSD.org +COMMENT= Persistent cache for requests library + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=1.1.0:www/py-requests +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=2.8:devel/py-pytest \ + ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock + +# Python 2.6-3.5(+) 20171026 +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest + +.include <bsd.port.mk> diff --git a/www/py-requests-cache/distinfo b/www/py-requests-cache/distinfo new file mode 100644 index 000000000000..815752946214 --- /dev/null +++ b/www/py-requests-cache/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1509013259 +SHA256 (requests-cache-0.4.13.tar.gz) = fe561ca119879bbcfb51f03a35e35b425e18f338248e59fd5cf2166c77f457a2 +SIZE (requests-cache-0.4.13.tar.gz) = 29342 diff --git a/www/py-requests-cache/pkg-descr b/www/py-requests-cache/pkg-descr new file mode 100644 index 000000000000..af8f37b2adb8 --- /dev/null +++ b/www/py-requests-cache/pkg-descr @@ -0,0 +1,10 @@ +Requests-cache is a transparent persistent cache for requests (version +>= 1.1.0) library. + +Features: + + * Transparent caching + * Persistence (with support for SQLite, MongoDB or Redis) + * Cached object expiration + +WWW: https://github.com/reclosedev/requests-cache |