1 # Maintainer: Konstantin Gizdov <arch at kge dot pw>
2 # Contributor: Astro Benzene <universebenzene at sina dot com>
4 pkgname="python-${_pkgname}"
7 pkgdesc="Pytest plugin to help with testing figures output from Matplotlib"
9 url="https://github.com/matplotlib/pytest-mpl"
11 depends=('python-pytest' 'python-matplotlib' 'python-jinja' 'python-packaging')
12 makedepends=('python-setuptools-scm' 'python-build' 'python-installer' 'python-wheel' 'git')
13 checkdepends=('python-pytest-cov' 'python-pytest-shutil' 'python-jinja')
14 source=("${pkgname}::git+https://github.com/matplotlib/pytest-mpl.git#tag=v${pkgver}")
18 cd "${srcdir}/${pkgname}"
19 python -m build --wheel --no-isolation
23 cd "${srcdir}/${pkgname}"
25 PYTHONPATH="${srcdir}/${pkgname}/build/lib" pytest || echo 'some tests fail'
29 cd "${srcdir}/${pkgname}"
30 python -m installer --destdir="$pkgdir" dist/*.whl
31 install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
32 install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"