blob: fe457faf604719b26535a2546ce595107723fc79 (
plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-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"
makedepends="py-setuptools py3-setuptools"
subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2"
source="$pkgname-$pkgver.tar.gz::https://github.com/jmcnamara/XlsxWriter/archive/RELEASE_${pkgver}.tar.gz"
builddir="$srcdir"/$_pkgname-RELEASE_$pkgver
build() {
python2 setup.py build
python3 setup.py build
}
package() {
mkdir -p "$pkgdir"
}
check() {
python2 -m unittest discover
python3 -m unittest discover
}
_py() {
local python=$1
pkgdesc="$pkgdesc - $python"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
_py2() {
_py python2
replaces="$pkgname"
}
_py3() {
_py python3
}
sha512sums="760bc14a9325edf0c1030220a2dd89d812bd08c61f07314f6b86a4efea191cdeebf433f39ad28e11776c60be471d1387d5c7f036205aa65f68734e9390f282ee py-xlsxwriter-1.1.8.tar.gz"
|