1 # Maintainer: Andrzej Giniewicz <gginiu@gmail.com>
2 # Contributor: George Rawlinson <grawlinson@archlinux.org>
4 pkgname='python-et-xmlfile'
7 pkgdesc="A low memory library for creating large XML files."
9 url="https://et-xmlfile.readthedocs.io/"
12 makedepends=('python-setuptools')
13 checkdepends=('python-pytest-runner' 'python-lxml')
14 source=("https://foss.heptapod.net/openpyxl/et_xmlfile/-/archive/${pkgver}/et_xmlfile-${pkgver}.tar.gz")
15 sha256sums=('8d6705c2f97b2d6195c95e5f3781a1ed44a59d43cf1263e04034767e5db65131')
18 cd "$srcdir"/et_xmlfile-${pkgver}
19 # fix deprecation warning
20 sed -i "s/strict/strict-markers/" pytest.ini
24 cd "$srcdir"/et_xmlfile-${pkgver}
29 cd "$srcdir"/et_xmlfile-${pkgver}
30 python setup.py pytest
34 cd "$srcdir"/et_xmlfile-${pkgver}
35 python setup.py install --skip-build --root="$pkgdir" --optimize=1
36 install -Dm644 LICENCE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENCE