Date: Saturday, February 4, 2023 @ 06:51:05 Author: yan12125 Revision: 1392309
archrelease: copy trunk to community-testing-any Added: python-openpyxl/repos/community-testing-any/ python-openpyxl/repos/community-testing-any/PKGBUILD (from rev 1392308, python-openpyxl/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: python-openpyxl/repos/community-testing-any/PKGBUILD (from rev 1392308, python-openpyxl/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2023-02-04 06:51:05 UTC (rev 1392309) @@ -0,0 +1,38 @@ +# Maintainer: Chih-Hsuan Yen <yan12...@archlinux.org> +# Contributor: Andrzej Giniewicz <ggi...@gmail.com> +# Contributor: Nishit Joseph (reachjlight at gmail dot com) +# Contributor: Martin Corley <martin.cor...@ed.ac.uk> + +pkgname=python-openpyxl +# https://openpyxl.readthedocs.io/en/stable/changes.html +pkgver=3.1.0 +pkgrel=1 +pkgdesc="A Python library to read/write Excel 2007 xlsx/xlsm files" +arch=('any') +url="https://openpyxl.readthedocs.org/" +license=('MIT') +depends=('python-et-xmlfile') +makedepends=('python-setuptools' 'python-defusedxml') +checkdepends=('python-pytest' 'python-py' 'python-lxml' 'python-pandas' 'python-pillow') +optdepends=('python-pillow: needed to include images' + 'python-lxml: alternative XML backend' + 'python-defusedxml: guard against various XML vulnerabilities' + 'python-pandas: for iteration over Pandas DataFrames') +source=("https://foss.heptapod.net/openpyxl/openpyxl/-/archive/${pkgver}/openpyxl-${pkgver}.tar.bz2") +sha256sums=('45a8e7e2afd3764d9f0fbb7be8636f55c7843472f36ae776d933526615840a8a') + +build() { + cd "$srcdir"/openpyxl-${pkgver} + python setup.py build +} + +check() { + cd "$srcdir"/openpyxl-${pkgver} + pytest +} + +package() { + cd "$srcdir"/openpyxl-${pkgver} + python setup.py install --skip-build --root="$pkgdir" --optimize=1 + install -Dm644 LICENCE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENCE +}