1 # Maintainer: Thomas Dziedzic < gostrc at gmail >
2 # Contributor: Pierre Chapuis <catwell at archlinux dot us>
5 pkgname=python-decorator
8 pkgdesc='Python Decorator module'
10 url='https://pypi.python.org/pypi/decorator'
13 makedepends=('python' 'python-setuptools')
14 source=("https://pypi.python.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz"
16 sha512sums=('584857ffb0c3e52344b473ceb9e28adfd7d789d480a528471f8ab37be055ebe5feb170f41077010e25350e1c311189d45b90773cf12f0043de98ea8ebcde20ab'
17 '0a06dfb3f470b8d3b056bd4e4776df715876d04d0acc86dec536fa7cff0214ba5255833923558d1778db730d080960f31d5e12f939e761530823b6e70646b5c2')
20 cd "$srcdir/$_name-$pkgver"
22 python3 setup.py build
26 cd "${srcdir}/${_name}-${pkgver}"
28 python3 setup.py install --root="${pkgdir}" --optimize=1
30 install -D -m644 "${srcdir}/LICENSE.txt" \
31 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
35 cd "$srcdir/${_name}-$pkgver"
37 python3 -m unittest discover -vs .