archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-colander / trunk / PKGBUILD
blob649c3c77db916c4abb8d73bd3f2f20bcec7420ea
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-colander
4 pkgver=2.0
5 pkgrel=2
6 pkgdesc="A simple schema-based serialization and deserialization library"
7 url="https://docs.pylonsproject.org/projects/colander/en/latest/"
8 license=('BSD')
9 arch=('any')
10 depends=('python-iso8601' 'python-translationstring')
11 makedepends=('python-babel' 'python-setuptools')
12 checkdepends=('python-pytest-cov' 'python-pytest-runner')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/Pylons/colander/archive/$pkgver.tar.gz")
14 sha512sums=('3202129abba4defba22e373913873d0aeda9fa224d99c309aa379c227cfa88eb01ae58f3d9200f87eb8f70e4cba029149a7773ba54db2ec0bea654fd5066547b')
16 build() {
17   cd colander-$pkgver
18   python setup.py build
21 check() {
22   cd colander-$pkgver
23   python setup.py pytest
26 package() {
27   cd colander-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
30   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt