sbcl rebuild
[arch-packages.git] / python-attrs / trunk / PKGBUILD
blobb3bbe4a66bc61af52c92130a9649c18210d96b7b
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-attrs
4 pkgver=22.1.0
5 pkgrel=1
6 pkgdesc="Attributes without boilerplate."
7 arch=('any')
8 license=('MIT')
9 url="https://www.attrs.org"
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest' 'python-cloudpickle' 'python-hypothesis' 'python-zope-interface')
13 source=("https://pypi.io/packages/source/a/attrs/attrs-$pkgver.tar.gz")
14 sha512sums=('447637bc82b31d565479e364869b996eaf7b67e526ad97f79ba1c27f287bbb25a2c40663e35437bc19037f605fac9322bd35f303f2769f0eb2ee673900551885')
16 build() {
17   cd attrs-$pkgver
18   python setup.py build
21 check() {
22   cd attrs-$pkgver
23   PYTHONPATH=build/lib pytest
26 package() {
27   cd attrs-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
29   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/