archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-lazy-object-proxy / repos / extra-x86_64 / PKGBUILD
blob9cfdd3cf7eb817ccddc98b44d85893fbc7ae9016
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-lazy-object-proxy
4 pkgver=1.7.1
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' 'python-pytest-runner')
13 source=("https://github.com/ionelmc/python-lazy-object-proxy/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('aa00e987e99f0917c5bd381186071b32fc3c950fc0b56c71ff4ef6766b1b9af621c6c43f5b94f1df27268363cde225983fd568c0c4433faba7a99ab74b368f48')
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   python setup.py pytest --addopts --ignore=src
28 package() {
29   cd python-lazy-object-proxy-$pkgver
30   python setup.py install --root="$pkgdir" --optimize=1
31   install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE