Signed-off-by: Michał Górny <mgorny@gentoo.org>
EAPI=6
-PYTHON_COMPAT=( python2_7 python3_6 )
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
inherit distutils-r1
sed -e 's:test_rl1_platypus:_&:' \
-i tests/test_examples.py || die
# fails with py3
- sed -e '/repaginate\/7037/s:dd41b0104f185206b51e7ffe5b07d261:skip:' \
+ sed -e '/repaginate\/7037/s:[0-9a-f]*$:skip:' \
+ -e '/.*\/72eb/s:[0-9a-f]*$:skip:' \
-i tests/expected.txt || die
+ # fix py3.7+
+ sed -i -e 's:raise StopIteration:return:' pdfrw/tokens.py || die
distutils-r1_src_prepare
}