summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f9dcf216af7d6826a50ab0e594729c701d39aa3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
_pythonmod=flask-restplus
pkgname=('python2-flask-restplus' 'python-flask-restplus')
pkgbase='python2-flask-restplus'
pkgver=0.10.1
pkgrel=1
pkgdesc='custom actions for flask to help manage your application'
arch=('any')
url='http://pypi.python.org/pypi/Flask-Restplus/'
license=('BSD')

source=("https://pypi.io/packages/source/f/flask-restplus/flask-restplus-${pkgver}.tar.gz")
sha1sums=('d6162efccd7e7c794f435252adcf78a262cfa969')

check_python2-flask-restplus() {
  checkdepends=('python2-blinker' 'python2-rednose' 'python2-nose' 'python2-mock' 'python2-tzlocal')
  cd ${srcdir}/${_pythonmod}-$pkgver
  python2 ./setup.py test
}

package_python2-flask-restplus() {
  depends=('python2-flask>=0.8' 'python2-six>=1.3.0' 'python2-jsonschema' 'python2-pytz' 'python2-aniso8601>=0.82')
  cd ${srcdir}/${_pythonmod}-$pkgver
  python2 ./setup.py install --root="${pkgdir}" --prefix="/usr"

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
}

check_python-flask-restplus() {
  checkdepends=('python-blinker' 'python-rednose' 'python-nose' 'python-mock' 'python-tzlocal')
  cd ${srcdir}/${_pythonmod}-$pkgver
  python ./setup.py test
}

package_python-flask-restplus() {
  depends=('python-flask>=0.8' 'python-six>=1.3.0' 'python-jsonschema' 'python-pytz' 'python-aniso8601>=0.82')
  cd ${srcdir}/${_pythonmod}-$pkgver
  python ./setup.py install --root="${pkgdir}" --prefix="/usr"

  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}"
}

# vim:set ts=2 sw=2 et: