1 pkgname=python25-unittest2
4 pkgdesc="The new features in unittest for Python 2.7 backported to Python 2.5+."
6 url="http://www.voidspace.org.uk/python/articles/unittest2.shtml"
9 makedepends=("python2-distribute")
11 install="python25-unittest2.install"
12 source=(http://pypi.python.org/packages/source/u/unittest2/unittest2-$pkgver.tar.gz
14 python25-unittest2.install)
15 md5sums=('a0af5cac92bbbfa0c3b0e99571390e0f'
16 '0c162ecb7937c6a146e5b0457f0ccf1e'
17 '8d0d5f3cf2bb0782edb346433f4fce43')
18 sha256sums=('aa5de8cdf654d843379c97bd1ee240e86356d3355a97b147a6f3f4d149247a71'
19 'e0bfff5f29a59d078142b8b24b60b0105043057b9e238974d26ae778804ba9bc'
20 'c0f9871ab3456e4c73f3eb8f896630ba4a8d03267844ee916c45194c34fc91b5')
23 cd "$srcdir/unittest2-$pkgver"
24 python2.5 setup.py install "--root=$pkgdir" --optimize=1
26 # Leave /usr/bin/unit2 for unittest2 for Python 3
27 # Switch to full removal when upstream adds /usr/bin/unit2-2[.py]
28 mv "$pkgdir/usr/bin/unit2" "$pkgdir/usr/bin/unit2-25"
29 mv "$pkgdir/usr/bin/unit2.py" "$pkgdir/usr/bin/unit2-25.py"
33 install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE