1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Troy C < rstrox -ta yahoo -tod com >
7 pkgdesc="A Python module for decorators, wrappers and monkey patching"
9 url="https://pypi.python.org/pypi/wrapt"
12 makedepends=('python')
13 checkdepends=('python-pytest')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/GrahamDumpleton/wrapt/archive/$pkgver.tar.gz"
16 sha512sums=('33e964cb3aa2437bc7d084a98f622f7c5c8c719d97806796ae0317d35130bdb2679a9dd87be7077e2cae1eb32b65d152349fa7cc138cb392d5999cbfdcecc9ac'
17 '372323f80578bc1fe2fdf8d3a5dc67b79956180048f8036be429b3e2fed4c9f3ce3d29a2c9e8b6128a2ab64cf7d21dc1e7026e8df14a062a94bd8518aca5b50a')
20 cd "$srcdir"/wrapt-$pkgver
21 patch -Np1 -i ../py39.patch # https://github.com/GrahamDumpleton/wrapt/issues/160
25 cd "$srcdir"/wrapt-$pkgver
30 cd "$srcdir"/wrapt-$pkgver
31 PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.10:$PYTHONPATH" py.test
36 python setup.py install --root="$pkgdir" --optimize=1
37 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE