1 # Maintainer: Aaron DeVore <aaron.devore@gmail.com>
3 pkgname=python-unittest2
6 pkgdesc="The new features in unittest for Python 3.2 backported to Python 3.0+"
8 url="http://www.voidspace.org.uk/python/articles/unittest2.shtml"
10 makedepends=("python-distribute")
12 source=(http://pypi.python.org/packages/source/u/unittest2py3k/unittest2py3k-$pkgver.tar.gz LICENSE)
14 md5sums=('8824ff92044310d9365f90d892bf0f09' '0c162ecb7937c6a146e5b0457f0ccf1e')
15 sha256sums=('78249c5f1ac508a34d9d131d43a89d77bf154186f3ea5f7a6b993d3f3535d403'
16 'e0bfff5f29a59d078142b8b24b60b0105043057b9e238974d26ae778804ba9bc')
19 cd "$srcdir/unittest2py3k-$pkgver"
20 python setup.py install "--root=$pkgdir" --optimize=1
21 # Remove this when upstream adds unit2-3[.py] symlinks
22 cp -a $pkgdir/usr/bin/unit2 $pkgdir/usr/bin/unit2-3
23 cp -a $pkgdir/usr/bin/unit2.py $pkgdir/usr/bin/unit2-3.py
27 install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE