# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=py3-xlsxwriter pkgver=3.1.2 pkgrel=0 pkgdesc="A Python module for creating Excel XLSX files" url="https://github.com/jmcnamara/XlsxWriter" arch="noarch" license="BSD-2-Clause" depends="python3" makedepends=" py3-gpep517 py3-setuptools py3-wheel " checkdepends="py3-pytest-xdist" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/jmcnamara/XlsxWriter/archive/RELEASE_$pkgver.tar.gz" builddir="$srcdir"/XlsxWriter-RELEASE_$pkgver replaces=py-xlsxwriter # Backwards compatibility provides=py-xlsxwriter=$pkgver-r$pkgrel # Backwards compatibility build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest -n 2 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 05f70721e6c55d54acdc143681ec581d3bf16c5d07725790bc648c169507e3cd9bd600ac4fcb4ff03fa449a6efc469d0745b92fcdb89afbf27ee1e2998c09613 py3-xlsxwriter-3.1.2.tar.gz "