archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-characteristic / trunk / PKGBUILD
blob0a3d87a460a6ba99b2fd8ef22a8aeb49c86955fa
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-characteristic
4 pkgver=14.3.0
5 pkgrel=16
6 pkgdesc="Python attributes without boilerplate."
7 arch=('any')
8 license=('MIT')
9 url="https://pypi.python.org/pypi/characteristic"
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest-runner')
13 source=("https://files.pythonhosted.org/packages/source/c/characteristic/characteristic-$pkgver.tar.gz"{,.asc})
14 sha256sums=('ded68d4e424115ed44e5c83c2a901a0b6157a959079d7591d92106ffd3ada380'
15             'SKIP')
16 validpgpkeys=('C2A04F86ACE28ADCF817DBB7AE2536227F69F181') # Hynek Schlawack <hs@ox.cx>
18 prepare() {
19   sed -i 's/\[pytest\]/[tool:pytest]/' characteristic-$pkgver/setup.cfg
22 build() {
23   cd "$srcdir"/characteristic-$pkgver
24   python setup.py build
27 check() {
28   cd "$srcdir"/characteristic-$pkgver
29   python setup.py test
32 package_python-characteristic() {
33   cd characteristic-$pkgver
34   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
35   install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"