upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-pytest-mpl / trunk / PKGBUILD
blobc51bf987f05a9424efb5375ac4733963e7e855f7
1 # Maintainer: Konstantin Gizdov <arch at kge dot pw>
2 # Contributor: Astro Benzene <universebenzene at sina dot com>
3 _pkgname='pytest-mpl'
4 pkgname="python-${_pkgname}"
5 pkgver=0.16.1
6 pkgrel=2
7 pkgdesc="Pytest plugin to help with testing figures output from Matplotlib"
8 arch=('any')
9 url="https://github.com/matplotlib/pytest-mpl"
10 license=('BSD')
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}")
15 sha256sums=('SKIP')
17 build() {
18     cd "${srcdir}/${pkgname}"
19     python -m build --wheel --no-isolation
22 check() {
23     cd "${srcdir}/${pkgname}"
24     # some tests fail
25     PYTHONPATH="${srcdir}/${pkgname}/build/lib" pytest || echo 'some tests fail'
28 package() {
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}"