1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
4 pkgname=('python-attrs' 'python2-attrs')
7 pkgdesc="Attributes without boilerplate."
10 url="https://attrs.readthedocs.org/"
11 makedepends=('python-setuptools' 'python2-setuptools')
12 checkdepends=('python-pytest-runner' 'python-zope-interface' 'python-hypothesis')
13 source=("https://pypi.io/packages/source/a/attrs/attrs-$pkgver.tar.gz")
14 sha512sums=('35863f599076357e40f72a62968f4a2f9bc2af9f59f484fef051be4f9730ce9e28e11568915d690ade7980df8998af22e2ff8b9568a205d7745e246ba5f3a7e1')
17 cp -a attrs-$pkgver{,-py2}
21 cd "$srcdir"/attrs-$pkgver
24 cd "$srcdir"/attrs-$pkgver-py2
25 python2 setup.py build
30 python setup.py pytest
33 package_python-attrs() {
37 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
38 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
41 package_python2-attrs() {
45 python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build
46 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"