aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-xlsxwriter/APKBUILD
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2019-07-24 02:13:12 +0300
committerprspkt <prspkt@protonmail.com>2019-07-24 02:19:41 +0300
commit09e16ee666f6d00cb12ca3619d329f5278f724ab (patch)
treee6b4a810f545dd12fbee1a37e3ae29972a69ae18 /community/py3-xlsxwriter/APKBUILD
parent294ade2330222c731c22db8a02c8d3384a0b412c (diff)
downloadaports-09e16ee666f6d00cb12ca3619d329f5278f724ab.tar.gz
aports-09e16ee666f6d00cb12ca3619d329f5278f724ab.tar.bz2
aports-09e16ee666f6d00cb12ca3619d329f5278f724ab.tar.xz
community/py-xlsxwriter: drop python2
Diffstat (limited to 'community/py3-xlsxwriter/APKBUILD')
-rw-r--r--community/py3-xlsxwriter/APKBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/py3-xlsxwriter/APKBUILD b/community/py3-xlsxwriter/APKBUILD
new file mode 100644
index 0000000000..9a7cdbc0ab
--- /dev/null
+++ b/community/py3-xlsxwriter/APKBUILD
@@ -0,0 +1,32 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=py3-xlsxwriter
+_pkgname=XlsxWriter
+pkgver=1.1.8
+pkgrel=1
+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"
+source="$pkgname-$pkgver.tar.gz::https://github.com/jmcnamara/XlsxWriter/archive/RELEASE_${pkgver}.tar.gz"
+
+builddir="$srcdir"/$_pkgname-RELEASE_$pkgver
+
+replaces=py-xlsxwriter # Backwards compatibility
+provides=py-xlsxwriter=$pkgver-r$pkgrel # Backwards compatibility
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 -m unittest discover
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="760bc14a9325edf0c1030220a2dd89d812bd08c61f07314f6b86a4efea191cdeebf433f39ad28e11776c60be471d1387d5c7f036205aa65f68734e9390f282ee py3-xlsxwriter-1.1.8.tar.gz"