aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-xlsxwriter/APKBUILD
blob: dbf304100bead3496cf6192eb065f9fa9557a6f7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-xlsxwriter
_pyname=XlsxWriter
pkgver=1.4.3
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-setuptools py3-packaging"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/jmcnamara/XlsxWriter/archive/RELEASE_$pkgver.tar.gz"

builddir="$srcdir"/$_pyname-RELEASE_$pkgver

replaces=py-xlsxwriter # Backwards compatibility
provides=py-xlsxwriter=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	py.test-3
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
38b12e3c6bd14122ea9bf652ef33078cf4aedc2be7ce8c3151960331827642713d25f3f9bff9ad7d375d251086e1cc58b09e4d77141dd2973c21a1d24c0b0dd0  py3-xlsxwriter-1.4.3.tar.gz
"