updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / python2-pytest / PKGBUILD
blobfa04e05424bf132d98216976730338b1d77bd3ac
1 # Contributor: Felix Kaiser <felix.kaiser@fxkr.net>
3 pkgname=python2-pytest
4 pkgver=2.2.0
5 pkgrel=1
6 pkgdesc="rapid testing utils"
7 arch=('any')
8 license=('MIT')
9 url="http://pytest.org/"
10 depends=('python2' 'python2-py')
11 makedepends=('python2-distribute')
12 source=(http://pypi.python.org/packages/source/p/pytest/pytest-$pkgver.zip)
13 md5sums=('fa904c0f879c51f62058dbafe93cbe2f')
15 build() {
16   cd "$srcdir/pytest-$pkgver"
18   python2 setup.py install --root="${pkgdir}" --optimize=1
19   install -D -m644 LICENSE "${pkgdir}"/usr/share/licenses/"$pkgname"/LICENSE
21   # deal with the conflict with python-pytests version of /usr/bin/py.test
22   mv "$pkgdir/usr/bin/py.test"{,2}