summaryrefslogtreecommitdiff
path: root/dev-python/piexif/piexif-1.1.3.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/piexif/piexif-1.1.3.ebuild')
-rw-r--r--dev-python/piexif/piexif-1.1.3.ebuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/dev-python/piexif/piexif-1.1.3.ebuild b/dev-python/piexif/piexif-1.1.3.ebuild
index 2ee96f6045b1..62f016bbbb9c 100644
--- a/dev-python/piexif/piexif-1.1.3.ebuild
+++ b/dev-python/piexif/piexif-1.1.3.ebuild
@@ -5,7 +5,7 @@ EAPI=7
PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 )
-inherit distutils-r1
+inherit edos2unix distutils-r1
DESCRIPTION="Exif manipulation with pure Python"
HOMEPAGE="https://github.com/hMatoba/Piexif
@@ -23,6 +23,16 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
test? ( dev-python/pillow[jpeg] )"
RDEPEND=""
+PATCHES=(
+ # From https://github.com/hMatoba/Piexif/pull/109
+ "${FILESDIR}"/${P}-tests-pillow-7.2.0.patch
+)
+
+src_prepare() {
+ edos2unix tests/s_test.py # to be able to patch it
+ default
+}
+
python_test() {
"${PYTHON}" setup.py test || die
}