diff options
author | adam <adam@pkgsrc.org> | 2018-12-06 19:32:05 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2018-12-06 19:32:05 +0000 |
commit | 1eb92bec7a933985fbefe2eded0e3aaf3df412c1 (patch) | |
tree | 3761463cf44f0c06c9f9d747e40c3545b498e40d /www | |
parent | 0229611ff6273bf5d08da2ef7564762723e7c34a (diff) | |
download | pkgsrc-1eb92bec7a933985fbefe2eded0e3aaf3df412c1.tar.gz |
py-flask-restful: added version 0.3.6
Flask-RESTful is an extension for Flask that adds support for quickly building REST APIs. It is a lightweight abstraction that works with your existing ORM/libraries. Flask-RESTful encourages best practices with minimal setup. If you are familiar with Flask, Flask-RESTful should be easy to pick up.
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 3 | ||||
-rw-r--r-- | www/py-flask-restful/DESCR | 4 | ||||
-rw-r--r-- | www/py-flask-restful/Makefile | 24 | ||||
-rw-r--r-- | www/py-flask-restful/PLIST | 40 | ||||
-rw-r--r-- | www/py-flask-restful/distinfo | 7 | ||||
-rw-r--r-- | www/py-flask-restful/patches/patch-setup.py | 15 |
6 files changed, 92 insertions, 1 deletions
diff --git a/www/Makefile b/www/Makefile index 8e0415f837f..567f69d0b3d 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1351 2018/12/03 02:20:36 manu Exp $ +# $NetBSD: Makefile,v 1.1352 2018/12/06 19:32:05 adam Exp $ # COMMENT= Packages related to the World Wide Web @@ -692,6 +692,7 @@ SUBDIR+= py-flask-login SUBDIR+= py-flask-mail SUBDIR+= py-flask-principal SUBDIR+= py-flask-rest +SUBDIR+= py-flask-restful SUBDIR+= py-flask-script SUBDIR+= py-flask-security SUBDIR+= py-flask-sqlalchemy diff --git a/www/py-flask-restful/DESCR b/www/py-flask-restful/DESCR new file mode 100644 index 00000000000..cc601cfde28 --- /dev/null +++ b/www/py-flask-restful/DESCR @@ -0,0 +1,4 @@ +Flask-RESTful is an extension for Flask that adds support for quickly building +REST APIs. It is a lightweight abstraction that works with your existing +ORM/libraries. Flask-RESTful encourages best practices with minimal setup. If +you are familiar with Flask, Flask-RESTful should be easy to pick up. diff --git a/www/py-flask-restful/Makefile b/www/py-flask-restful/Makefile new file mode 100644 index 00000000000..dd24c9bf89c --- /dev/null +++ b/www/py-flask-restful/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2018/12/06 19:32:05 adam Exp $ + +DISTNAME= Flask-RESTful-0.3.6 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} +CATEGORIES= www python +MASTER_SITES= ${MASTER_SITE_PYPI:=F/Flask-RESTful/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/flask-restful/flask-restful +COMMENT= Simple framework for creating REST APIs +LICENSE= modified-bsd + +DEPENDS+= ${PYPKGPREFIX}-aniso8601>=0.82:../../time/py-aniso8601 +DEPENDS+= ${PYPKGPREFIX}-cryptodome-[0-9]*:../../security/py-cryptodome +DEPENDS+= ${PYPKGPREFIX}-flask>=0.8:../../www/py-flask +DEPENDS+= ${PYPKGPREFIX}-pytz-[0-9]*:../../time/py-pytz +DEPENDS+= ${PYPKGPREFIX}-six>=1.3.0:../../lang/py-six +TEST_DEPENDS+= ${PYPKGPREFIX}-blinker-[0-9]*:../../devel/py-blinker +TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock + +USE_LANGUAGES= # none + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/py-flask-restful/PLIST b/www/py-flask-restful/PLIST new file mode 100644 index 00000000000..fb69e11eb69 --- /dev/null +++ b/www/py-flask-restful/PLIST @@ -0,0 +1,40 @@ +@comment $NetBSD: PLIST,v 1.1 2018/12/06 19:32:05 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}/flask_restful/__init__.py +${PYSITELIB}/flask_restful/__init__.pyc +${PYSITELIB}/flask_restful/__init__.pyo +${PYSITELIB}/flask_restful/__version__.py +${PYSITELIB}/flask_restful/__version__.pyc +${PYSITELIB}/flask_restful/__version__.pyo +${PYSITELIB}/flask_restful/fields.py +${PYSITELIB}/flask_restful/fields.pyc +${PYSITELIB}/flask_restful/fields.pyo +${PYSITELIB}/flask_restful/inputs.py +${PYSITELIB}/flask_restful/inputs.pyc +${PYSITELIB}/flask_restful/inputs.pyo +${PYSITELIB}/flask_restful/paging.py +${PYSITELIB}/flask_restful/paging.pyc +${PYSITELIB}/flask_restful/paging.pyo +${PYSITELIB}/flask_restful/representations/__init__.py +${PYSITELIB}/flask_restful/representations/__init__.pyc +${PYSITELIB}/flask_restful/representations/__init__.pyo +${PYSITELIB}/flask_restful/representations/json.py +${PYSITELIB}/flask_restful/representations/json.pyc +${PYSITELIB}/flask_restful/representations/json.pyo +${PYSITELIB}/flask_restful/reqparse.py +${PYSITELIB}/flask_restful/reqparse.pyc +${PYSITELIB}/flask_restful/reqparse.pyo +${PYSITELIB}/flask_restful/utils/__init__.py +${PYSITELIB}/flask_restful/utils/__init__.pyc +${PYSITELIB}/flask_restful/utils/__init__.pyo +${PYSITELIB}/flask_restful/utils/cors.py +${PYSITELIB}/flask_restful/utils/cors.pyc +${PYSITELIB}/flask_restful/utils/cors.pyo +${PYSITELIB}/flask_restful/utils/crypto.py +${PYSITELIB}/flask_restful/utils/crypto.pyc +${PYSITELIB}/flask_restful/utils/crypto.pyo diff --git a/www/py-flask-restful/distinfo b/www/py-flask-restful/distinfo new file mode 100644 index 00000000000..9be5df5db07 --- /dev/null +++ b/www/py-flask-restful/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2018/12/06 19:32:05 adam Exp $ + +SHA1 (Flask-RESTful-0.3.6.tar.gz) = 69584f970645893ffdaad2e4db60cbdb949459ed +RMD160 (Flask-RESTful-0.3.6.tar.gz) = 06a61de7d39c45f876c1856a3941be8f4f8cfda8 +SHA512 (Flask-RESTful-0.3.6.tar.gz) = 7d980a12ed5d72e16fc0e6b45abc75d552f4921a68ab3d4af0425b0b0c9f517cc8240615802ccd6147f122aa0d859d79bb2af7e694f48e614bf9870d8b50e931 +Size (Flask-RESTful-0.3.6.tar.gz) = 103092 bytes +SHA1 (patch-setup.py) = 969a6b81bdee659f8e4df301ef22ab2493e5d85b diff --git a/www/py-flask-restful/patches/patch-setup.py b/www/py-flask-restful/patches/patch-setup.py new file mode 100644 index 00000000000..3afe97b7e75 --- /dev/null +++ b/www/py-flask-restful/patches/patch-setup.py @@ -0,0 +1,15 @@ +$NetBSD: patch-setup.py,v 1.1 2018/12/06 19:32:05 adam Exp $ + +Prefer pycryptodome. + +--- setup.py.orig 2018-12-06 12:01:18.000000000 +0000 ++++ setup.py +@@ -60,7 +60,7 @@ setup( + tests_require=['Flask-RESTful[paging]', 'mock>=0.8', 'blinker'], + # Install these with "pip install -e '.[paging]'" or '.[docs]' + extras_require={ +- 'paging': 'pycrypto>=2.6', ++ 'paging': 'pycryptodome', + 'docs': 'sphinx', + } + ) |