From 5fffe2266deee20181f78c0d4ec5e87dbea9adaf Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 19 Jul 2017 02:41:39 +0000 Subject: python-flask-restful: initial inclusion. dep of flexget --- .../python_modules/python-flask-restful/LICENSE | 25 ++++++++++ .../python_modules/python-flask-restful/PKGBUILD | 54 ++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 abs/core/python_modules/python-flask-restful/LICENSE create mode 100644 abs/core/python_modules/python-flask-restful/PKGBUILD diff --git a/abs/core/python_modules/python-flask-restful/LICENSE b/abs/core/python_modules/python-flask-restful/LICENSE new file mode 100644 index 0000000..3337f90 --- /dev/null +++ b/abs/core/python_modules/python-flask-restful/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2013, Twilio, Inc. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +- Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. +- Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. +- Neither the name of the Twilio, Inc. nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/abs/core/python_modules/python-flask-restful/PKGBUILD b/abs/core/python_modules/python-flask-restful/PKGBUILD new file mode 100644 index 0000000..f35345c --- /dev/null +++ b/abs/core/python_modules/python-flask-restful/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Thomas Sarboni + +pkgbase=python-flask-restful +pkgname=('python2-flask-restful') +_realname=Flask-RESTful +pkgver=0.3.5 +pkgrel=1 +pkgdesc='A Flask extension for creating REST APIs' +_baseurl='https://pypi.python.org' +url="${_baseurl}/pypi/${_realname}" +arch=('any') +license=('BSD') +makedepends=('python2-distribute' 'python2-aniso8601>=0.82') +conflicts=('python2-flask-restful-git') +source=("${_baseurl}/packages/source/F/${_realname}/${_realname}-${pkgver}.tar.gz" + 'LICENSE') +md5sums=('eab04644697354c0e9ef0fa4c17fe607' + '685bb55ed99a366bb431995f5eef2783') + +prepare() { + # We ship separated python{,2}-packaging packages. + cp -a ${_realname}-${pkgver}{,-python2} +} + +build() { + # Build python 3 module +# cd "${srcdir}/${_realname}-${pkgver}" +# python3 setup.py build + + # Build python 2 module + cd "${srcdir}/${_realname}-${pkgver}-python2" + python2 setup.py build +} + +package_python-flask-restful() { + depends=('python-flask>=0.8' 'python-six>=1.3.0' 'python-pytz' 'python-aniso8601>=0.82') + + cd "${srcdir}/${_realname}-${pkgver}" + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + + _licenses_path="${pkgdir}/usr/share/licenses/python-flask-restful" + install -D -m644 ${srcdir}/LICENSE "${_licenses_path}/LICENSE" +} + +package_python2-flask-restful() { + depends=('python2-flask>=0.8' 'python2-six>=1.3.0' 'python2-pytz' 'python2-aniso8601>=0.82') + + cd "${srcdir}/${_realname}-${pkgver}-python2" + python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + + _licenses_path="${pkgdir}/usr/share/licenses/python2-flask-restful" + install -D -m644 ${srcdir}/LICENSE "${_licenses_path}/LICENSE" +} + -- cgit v0.12