archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-lazy-object-proxy / trunk / PKGBUILD
blob1723ccf7ed4546fa6a188d3658944fdcb34c9fda
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-lazy-object-proxy
4 pkgver=1.9.0
5 pkgrel=3
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=('2757ff4ac791af1ac168388f75e06f509bfdea17f208de67cca5ce800b5d6536ae7b3ac2b528d8e797bbc97af756f7b072fdd052cd188a132407a4ea663352aa')
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-311" 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/