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=('2757ff4ac791af1ac168388f75e06f509bfdea17f208de67cca5ce800b5d6536ae7b3ac2b528d8e797bbc97af756f7b072fdd052cd188a132407a4ea663352aa')
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-311" 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/