diff options
author | Universebenzene | 2021-07-03 21:13:55 +0800 |
---|---|---|
committer | Universebenzene | 2021-07-03 21:13:55 +0800 |
commit | abf04c5d99d0e0bdeb638a46316f5d5df8529167 (patch) | |
tree | f2f8ba3ed423b7a6082fef3927122eb0d5086f95 /PKGBUILD | |
parent | 14487eb80e346ac1778f9ae1ab28630f247cf3e4 (diff) | |
download | aur-abf04c5d99d0e0bdeb638a46316f5d5df8529167.tar.gz |
Update to version 0.13
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -1,20 +1,35 @@ # Maintainer: Astro Benzene <universebenzene at sina dot com> pkgname=python-pytest-mpl -pkgver=0.12 -pkgrel=2 +_pyname=${pkgname#python-} +pkgver=0.13 +pkgrel=1 pkgdesc="Pytest plugin to help with testing figures output from Matplotlib" arch=('i686' 'x86_64') url="https://github.com/matplotlib/pytest-mpl" license=('BSD') -depends=('python-pytest' 'python-matplotlib' 'python-pillow' 'python-nose') +depends=('python-pytest' 'python-matplotlib') makedepends=('python-setuptools') +#checkdepends=('python-pytest' 'python-matplotlib') source=("https://files.pythonhosted.org/packages/source/p/pytest-mpl/pytest-mpl-${pkgver}.tar.gz") -md5sums=('ed0042c46024c4569064dfe9c6a3eae9') +md5sums=('a7515d8ba2a275385c07eec3bd9193f3') + +build() { + cd ${srcdir}/${_pyname}-${pkgver} + + python setup.py build +} + +check() { + cd ${srcdir}/${_pyname}-${pkgver} + + pytest || warning "Tests failed" +} package() { cd ${srcdir}/pytest-mpl-${pkgver} install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" + #install example python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 } |