archrelease: copy trunk to community-any
[arch-community.git] / python-numpydoc / trunk / PKGBUILD
blob4fb8a97491264e5f6569e28a8fc60cb1c107390b
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-numpydoc
4 pkgver=1.5.0
5 pkgrel=2
6 pkgdesc="Numpy's Sphinx extensions"
7 url="https://github.com/numpy/numpydoc"
8 license=('Apache')
9 arch=('any')
10 depends=('python-sphinx' 'python-jinja')
11 makedepends=('python-setuptools')
12 checkdepends=('python-matplotlib' 'python-numpy' 'python-pytest-cov')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/numpy/numpydoc/archive/v$pkgver.tar.gz")
14 sha512sums=('e87535c74767946a71b3094b6591fcfb4d7e42acd505c28b3a5c00ea19c29bb21806c5cb655b5d3aca670d105654956d9b59c06d8be68cd51a1760b219c1c815')
16 build() {
17   cd numpydoc-$pkgver
18   python setup.py build
21 check() {
22   cd numpydoc-$pkgver
23   python -m pytest
26 package() {
27   cd numpydoc-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1