[arch-commits] Commit in python-pytest-mpl/repos (2 files)

Konstantin Gizdov kgizdov at gemini.archlinux.org
Wed Dec 15 20:06:40 UTC 2021


    Date: Wednesday, December 15, 2021 @ 20:06:40
  Author: kgizdov
Revision: 1073435

archrelease: copy trunk to community-x86_64

Added:
  python-pytest-mpl/repos/community-x86_64/
  python-pytest-mpl/repos/community-x86_64/PKGBUILD
    (from rev 1073434, python-pytest-mpl/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-pytest-mpl/repos/community-x86_64/PKGBUILD (from rev 1073434, python-pytest-mpl/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2021-12-15 20:06:40 UTC (rev 1073435)
@@ -0,0 +1,33 @@
+# Maintainer: Konstantin Gizdov <arch at kge dot pw>
+# Contributor: Astro Benzene <universebenzene at sina dot com>
+_pkgname='pytest-mpl'
+pkgname="python-${_pkgname}"
+pkgver=0.13
+pkgrel=1
+pkgdesc="Pytest plugin to help with testing figures output from Matplotlib"
+arch=('x86_64')
+url="https://github.com/matplotlib/pytest-mpl"
+license=('BSD')
+depends=('python-pytest' 'python-matplotlib')
+makedepends=('python-setuptools' 'git')
+checkdepends=('python-pytest-cov')
+source=("${pkgname}::git+https://github.com/matplotlib/pytest-mpl.git#tag=v${pkgver}")
+sha256sums=('SKIP')
+
+build() {
+    cd "${srcdir}/${pkgname}"
+    python setup.py bdist_egg
+}
+
+check() {
+    cd "${srcdir}/${pkgname}"
+    cp -r "${_pkgname/-/_}".egg-info build/lib/
+    PYTHONPATH="${srcdir}/build/lib" pytest tests
+}
+
+package() {
+    cd "${srcdir}/${pkgname}"
+    install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+    install -D -m644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+    python setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1
+}



More information about the arch-commits mailing list