aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pypdf2/APKBUILD
blob: 9eda3769e4c439f0fe1983dadabd4e7fa935464a (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
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-pypdf2
_pkgname=PyPDF2
pkgver=2.10.9
pkgrel=1
pkgdesc="Pure-Python library built as a PDF toolkit"
url="https://github.com/py-pdf/PyPDF2"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
options="!check" # upstream has issues with testing
makedepends="py3-setuptools"
checkdepends="py3-pillow py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	pytest -v
}

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

sha512sums="
5d6759c3c8afec24d0bdb76ece35a82c4effc09038d4aebf0fe7faa9cd4b9d11c5b0341ad91bcaa33101a76556e7fa3dbd5d42d272139ec62b817fa98f695707  PyPDF2-2.10.9.tar.gz
"