archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-lazr.delegates / trunk / PKGBUILD
blob4282b182cdaddea98bbe151c7132ad60a3f7fba6
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=lazr.delegates
4 pkgname=python-lazr.delegates
5 pkgver=2.1.0
6 pkgrel=2
7 pkgdesc="Easily write objects that delegate behavior"
8 arch=(any)
9 url="https://launchpad.net/lazr.delegates"
10 license=(LGPL3)
11 depends=(
12   python
13   python-setuptools  # pkg_resources is used to declare namespaces
14   python-zope-interface
16 makedepends=(
17   python-build
18   python-installer
19   python-wheel
21 checkdepends=(python-pytest)
22 source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz{,.asc})
23 sha512sums=('e8e081d71afed32aa8b8e898268d1e4a33be6bbdcad7778dfb000b9ad600ae9922032b6d13d066c55106ea403a5a25340fb9f8e1fe3ee246732247cbb3fd108b'
24             'SKIP')
25 b2sums=('b8c9a1f0b473162560a21fc4ea7553786cb38f94ed7da63ccd740f5cd49b566ad5a0ba86270d062aed08dfe67dfc33708252a7761783bdeadb99a6ca1452a0c0'
26         'SKIP')
27 validpgpkeys=(
28   'AC0A4FF12611B6FCCF01C111393587D97D86500B'  # Colin Watson <cjwatson@chiark.greenend.org.uk>
29   '760D8F2C93E9CA8562E4A00E75D673C2DD1FB761'  # Jürgen Gmach <juergen.gmach@canonical.com>
32 build() {
33   cd $_name-$pkgver
34   python -m build --wheel --no-isolation
37 check() {
38   cd $_name-$pkgver
39   pytest -v
42 package() {
43   cd $_name-$pkgver
44   python -m installer --destdir="$pkgdir" dist/*.whl
45   install -vDm 644 {CONTRIBUTING,NEWS,README}.rst -t "$pkgdir/usr/share/doc/$pkgname/"