aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pdfminer/APKBUILD
blob: c7990aeb64bcd7a4cbdd018f4ee9116598297679 (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
36
37
38
39
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-pdfminer
_pyname=pdfminer.six
pkgver=20200517
pkgrel=0
pkgdesc="Python PDF Parser"
url="https://github.com/pdfminer/pdfminer.six"
arch="noarch"
license="MIT"
depends="
	python3
	py3-chardet
	py3-sortedcontainers
	py3-six
	py3-pycryptodome
	"
makedepends="
	py3-setuptools
	"
checkdepends="
	py3-nose
	"
# Only auto-generated github tarballs contain the testsuite
source="$pkgname-$pkgver.tar.gz::https://github.com/pdfminer/pdfminer.six/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	nosetests
}

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

sha512sums="7b8b0ea801a7ee419de3cc63e5a18fbc7861c1c3009f3ecf7098c1db25dcef6a8b71688828911746aa232d17aaba91302d1e0b7959ecd2a020852e99101ed3ba  py3-pdfminer-20200517.tar.gz"