archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-lazy-object-proxy / trunk / PKGBUILD
blob2c4a92e58673d4e24e6a2ed7f09a90c5393c4b69
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-lazy-object-proxy
4 pkgver=1.8.0
5 pkgrel=1
6 pkgdesc='A fast and thorough lazy object proxy'
7 arch=('x86_64')
8 url="https://github.com/ionelmc/python-lazy-object-proxy"
9 license=('BSD')
10 depends=("python")
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
18 build() {
19   cd python-lazy-object-proxy-$pkgver
20   python setup.py build
23 check() {
24   cd python-lazy-object-proxy-$pkgver
25   PYTHONPATH="$PWD/build/lib.linux-$CARCH-cpython-310" pytest
28 package() {
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/