aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/py3-pikepdf/APKBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/community/py3-pikepdf/APKBUILD b/community/py3-pikepdf/APKBUILD
new file mode 100644
index 0000000000..6d6449e718
--- /dev/null
+++ b/community/py3-pikepdf/APKBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
+pkgname=py3-pikepdf
+_pyname=pikepdf
+pkgver=1.6.0
+pkgrel=0
+pkgdesc="A Python library for reading and writing PDF"
+url=https://github.com/pikepdf/pikepdf
+arch=all
+license="MPL-2.0"
+depends="
+ python3
+ py3-lxml
+ "
+makedepends="
+ py3-setuptools
+ qpdf-dev
+ py3-pybind11
+ python3-dev
+ "
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir=$srcdir/$_pyname-$pkgver
+options="!check" # tests fail to import pikepdf
+
+build() {
+ python3 setup.py build
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="d5b2c50e1d6c28801b3d84447a666c679a769d8de6206f7db228dacf5ca9e40757c27c21f78fe2de9da5db5bdca797752b4ba8b3d1e4ae6d81dc2e73596b5583 pikepdf-1.6.0.tar.gz"