aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pikepdf/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-pikepdf/APKBUILD')
-rw-r--r--community/py3-pikepdf/APKBUILD27
1 files changed, 21 insertions, 6 deletions
diff --git a/community/py3-pikepdf/APKBUILD b/community/py3-pikepdf/APKBUILD
index 33e44a2055..dabd72b607 100644
--- a/community/py3-pikepdf/APKBUILD
+++ b/community/py3-pikepdf/APKBUILD
@@ -1,19 +1,31 @@
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py3-pikepdf
_pyname=pikepdf
-pkgver=1.19.3
+pkgver=2.12.2
pkgrel=0
pkgdesc="Python library for reading and writing PDF"
url="https://github.com/pikepdf/pikepdf"
arch="all"
license="MPL-2.0"
-depends="py3-lxml py3-pillow py3-pybind11>=2.4.3 py3-setuptools python3"
-makedepends="py3-pybind11-dev python3-dev qpdf-dev"
-_pypiprefix="${_pyname%${_pyname#?}}"
-source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
+depends="py3-lxml py3-pillow python3 py3-setuptools"
+makedepends="py3-pybind11-dev python3-dev py3-pybind11 py3-wheel qpdf-dev"
+source="https://files.pythonhosted.org/packages/source/p/pikepdf/pikepdf-$pkgver.tar.gz
+ remove_setuptools_scm_dependency.patch
+ "
builddir=$srcdir/$_pyname-$pkgver
options="!check" # tests fail to import pikepdf
+# secfixes:
+# 2.9.1-r2:
+# - CVE-2021-29421
+
+prepare() {
+ default_prepare
+ sed -e "s/__version__.*/__version__ = '$pkgver'/g" \
+ -e "s/use_scm_version=True/version='$pkgver'/" \
+ -i setup.py
+}
+
build() {
python3 setup.py build
}
@@ -22,4 +34,7 @@ package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="512e10a7be4009e7c3f6f1d487b435bb183f72b26941e260eeae62ea69456bffa0f0d10f6b4f0dc5c28f52aa6b4ae99fafa30a15c74d7b8715bec5356a8cc805 pikepdf-1.19.3.tar.gz"
+sha512sums="
+3eb8d4eaa2409536ebb6b44244db8ceac5f8f06694f11e0ea1daa38a74fb71e3d311fca01f2f6216e3bfee89eddee8d5757f1e1d9f033f5a7204304e540bd1e6 pikepdf-2.12.2.tar.gz
+a0e5e40153b4bde4dc031ca511cf07f3ed5afffc15636f879d589b1be79bfbcd9c72594658991e849d28d17bf7f9b464adc3eec65f6dbb3844b598f1e7ac0f16 remove_setuptools_scm_dependency.patch
+"