archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-nbval / trunk / PKGBUILD
blobc5957b6374590d2353a8a57ddf270a4c2345ffe1
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
4 pkgname=python-nbval
5 pkgver=0.10.0
6 pkgrel=5
7 pkgdesc="A py.test plugin to validate Jupyter notebooks"
8 url="https://github.com/computationalmodelling/nbval"
9 license=('BSD')
10 arch=('any')
11 depends=('python-pytest' 'python-jupyter_client' 'jupyter-nbformat' 'python-ipykernel'
12          'python-coverage')
13 makedepends=('python-setuptools' 'python-nbdime')
14 checkdepends=('python-doit' 'python-matplotlib' 'python-pytest-cov' 'python-pytest-mock' 'python-sympy')
15 optdepends=(
16   'python-nbdime: for --nbdime option'
18 source=("https://github.com/computationalmodelling/nbval/archive/$pkgver/$pkgname-$pkgver.tar.gz")
19 sha512sums=('65da8cbb2196b0fab591017e3ec83a6ae908db863bf53a989eb48d5037d99587d23abb3729eda38556f3c11c0a769eea60fa77f02c05836178519aac6e923e87')
21 build() {
22   cd nbval-$pkgver
23   python setup.py build
26 check() {
27   cd nbval-$pkgver
28   python setup.py egg_info
30   PYTHONPATH="$PWD" doit test
33 package() {
34   cd nbval-$pkgver
35   python setup.py install --root="$pkgdir" --optimize=1
37   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/