aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/py-img2pdf/10-tests-import-print-function.patch8
-rw-r--r--community/py-img2pdf/APKBUILD16
2 files changed, 17 insertions, 7 deletions
diff --git a/community/py-img2pdf/10-tests-import-print-function.patch b/community/py-img2pdf/10-tests-import-print-function.patch
new file mode 100644
index 0000000000..09e643a8ed
--- /dev/null
+++ b/community/py-img2pdf/10-tests-import-print-function.patch
@@ -0,0 +1,8 @@
+--- a/src/tests/__init__.py
++++ b/src/tests/__init__.py
+@@ -1,3 +1,5 @@
++from __future__ import print_function
++
+ import unittest
+
+ import img2pdf
diff --git a/community/py-img2pdf/APKBUILD b/community/py-img2pdf/APKBUILD
index 4b06e8a0d4..cb2ee3d52c 100644
--- a/community/py-img2pdf/APKBUILD
+++ b/community/py-img2pdf/APKBUILD
@@ -1,18 +1,20 @@
# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Carlo Landmeter <clandmeter@alpinelinux.org>
pkgname=py-img2pdf
-pkgver=0.2.4
-pkgrel=1
+pkgver=0.3.3
+pkgrel=0
pkgdesc="Convert images to PDF via direct JPEG inclusion"
url="https://gitlab.mister-muffin.de/josch/img2pdf"
arch="noarch"
license="LGPL"
depends="py-pillow"
+_py2_depends="py-enum34"
makedepends="python2-dev python3-dev py-setuptools"
checkdepends="py-pdfrw"
-install=""
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-source="https://pypi.python.org/packages/7e/a2/4f06081f674920be757d894b4bab874e6a3b5227e730cb7618430b366e69/img2pdf-$pkgver.tar.gz"
+source="https://pypi.python.org/packages/source/i/img2pdf/img2pdf-$pkgver.tar.gz
+ 10-tests-import-print-function.patch
+ "
builddir="$srcdir/img2pdf-$pkgver"
build() {
@@ -33,7 +35,7 @@ package() {
_py2() {
replaces="$pkgname"
- depends="${depends//py-/py2-}"
+ depends="${depends//py-/py2-} _py2_depends"
_py python2
}
@@ -51,5 +53,5 @@ _py() {
cd "$builddir"
$python setup.py install --prefix=/usr --root="$subpkgdir"
}
-
-sha512sums="c2d99da7076411cf4acabe8929fc8af4005ef1f3e3d9edc953f2731b8d41159c9e4637a803765e1405c595daebfb3d519d4c7903003ce0118d8b0c6e88f11860 img2pdf-0.2.4.tar.gz"
+sha512sums="234e0031d75727d2f5d2b82603bb447d9101ace81e604b6d5eb358d0b4681e209dbd737775b90b44096cf84239aac9e87e2369e0c6112a17f24ccbf10a20cdd5 img2pdf-0.3.3.tar.gz
+495bc1d41ff72615666c7e746040b6e38ee4f7f4ad2c581f4c9fa16b617484ea70b63036ea4d5b7270aa9fc64e873b47d2ba6ab5d0c05f484e2c99a3cfae2f41 10-tests-import-print-function.patch"