summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 652c8b510fcd15406b442cac039d28324dffbaef (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
# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor: xRemaLx <anton.komolov@gmail.com>

pkgname=python2-klein
pkgver=17.10.0
pkgrel=3
arch=(any)
pkgdesc='A web micro-framework built on werkzeug and twisted.web'
url='https://github.com/twisted/klein'
license=(MIT)
# incremental is listed in both setup_requires and install_requires
depends=(python2 python2-incremental python2-six python2-twisted python2-werkzeug)
makedepends=(python2-setuptools python2-incremental)
checkdepends=(python2-mock python2-pytest)
source=("$pkgname-$pkgver.tar.gz::https://github.com/twisted/klein/archive/release-$pkgver.tar.gz")
sha512sums=('611379159d8c06e2e6a63301d6745084f636669043a4acc15334e4ac4b745581a49d83383786e7ddb549b35f6941c9ccd5be35a27372998a6962cb8271eab8dc')

build() {
  cd "$srcdir"/klein-release-$pkgver
  python2 setup.py build
}

check() {
  cd "$srcdir"/klein-release-$pkgver
  pytest2 -v
}

package() {
  cd klein-release-$pkgver
  python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}