archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-wrapt / trunk / PKGBUILD
blob5aa4a14edccffdffd124d6814576c63e147251b3
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Troy C < rstrox -ta yahoo -tod com >
4 pkgname=python-wrapt
5 pkgver=1.12.1
6 pkgrel=6
7 pkgdesc="A Python module for decorators, wrappers and monkey patching"
8 arch=("x86_64")
9 url="https://pypi.python.org/pypi/wrapt"
10 license=("BSD")
11 depends=('python')
12 makedepends=('python')
13 checkdepends=('python-pytest')
14 source=("$pkgname-$pkgver.tar.gz::https://github.com/GrahamDumpleton/wrapt/archive/$pkgver.tar.gz"
15         py39.patch)
16 sha512sums=('33e964cb3aa2437bc7d084a98f622f7c5c8c719d97806796ae0317d35130bdb2679a9dd87be7077e2cae1eb32b65d152349fa7cc138cb392d5999cbfdcecc9ac'
17             '372323f80578bc1fe2fdf8d3a5dc67b79956180048f8036be429b3e2fed4c9f3ce3d29a2c9e8b6128a2ab64cf7d21dc1e7026e8df14a062a94bd8518aca5b50a')
19 prepare() {
20   cd "$srcdir"/wrapt-$pkgver
21   patch -Np1 -i ../py39.patch # https://github.com/GrahamDumpleton/wrapt/issues/160
24 build() {
25   cd "$srcdir"/wrapt-$pkgver
26   python setup.py build
29 check() {
30   cd "$srcdir"/wrapt-$pkgver
31   PYTHONPATH="$PWD/build/lib.linux-$CARCH-3.10:$PYTHONPATH" py.test
34 package() {
35   cd wrapt-$pkgver
36   python setup.py install --root="$pkgdir" --optimize=1
37   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE