archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-hyperframe / trunk / PKGBUILD
blobd20081a9cc3514c9f2533701b3809d4ed29ec3ed
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-hyperframe
4 pkgver=6.0.1
5 pkgrel=4
6 pkgdesc="HTTP/2 framing layer for Python"
7 arch=('any')
8 license=('MIT')
9 url="https://hyper.rtfd.org"
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest-runner')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/python-hyper/hyperframe/archive/v$pkgver.tar.gz")
14 sha512sums=('b4170194ef7504f0897a9cee689b32e22784e9b0d98d6da267b62983f013758acbfe53df9d6f6fad5f9709299e95ed32e1e73213f9515a4de20bd5c36fa39814')
16 build() {
17   cd "$srcdir"/hyperframe-$pkgver
18   python setup.py build
21 check() {
22   cd "$srcdir"/hyperframe-$pkgver
23   python setup.py pytest
26 package_python-hyperframe() {
27   cd hyperframe-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
29   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE