1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-lazy-object-proxy
6 pkgdesc='A fast and thorough lazy object proxy'
8 url="https://github.com/ionelmc/python-lazy-object-proxy"
11 makedepends=('python-setuptools-scm')
12 checkdepends=('python-pytest-benchmark')
13 source=("https://github.com/ionelmc/python-lazy-object-proxy/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('b80006adaf1d3c6360dae831f869b17055b615135338905dbbef93579b09e64781f666650243a9358d79f426a7982ea3374a780f246bb0ecc61a1a904c05960e')
16 export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
19 cd python-lazy-object-proxy-$pkgver
24 cd python-lazy-object-proxy-$pkgver
25 PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-310" pytest
29 cd python-lazy-object-proxy-$pkgver
30 python setup.py install --root="$pkgdir" --optimize=1
31 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/