1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-characteristic
6 pkgdesc="Python attributes without boilerplate."
9 url="https://pypi.python.org/pypi/characteristic"
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'
16 validpgpkeys=('C2A04F86ACE28ADCF817DBB7AE2536227F69F181') # Hynek Schlawack <hs@ox.cx>
19 sed -i 's/\[pytest\]/[tool:pytest]/' characteristic-$pkgver/setup.cfg
23 cd "$srcdir"/characteristic-$pkgver
28 cd "$srcdir"/characteristic-$pkgver
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"