commit: 6df8a9453c8051d423cdf8235dc65686388efc33
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jul 5 11:15:23 2021 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jul 5 11:15:23 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6df8a945
dev-python/pyclipper: Backport unittest2 removal to 1.2.1
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pyclipper/pyclipper-1.2.1.ebuild | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/dev-python/pyclipper/pyclipper-1.2.1.ebuild
b/dev-python/pyclipper/pyclipper-1.2.1.ebuild
index 949db123645..776f9a4c727 100644
--- a/dev-python/pyclipper/pyclipper-1.2.1.ebuild
+++ b/dev-python/pyclipper/pyclipper-1.2.1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1
DESCRIPTION="Cython wrapper for the C++ translation of the Angus Johnson's
Clipper library"
@@ -19,14 +19,12 @@ IUSE=""
BDEPEND="
dev-python/cython[${PYTHON_USEDEP}]
dev-python/setuptools_scm[${PYTHON_USEDEP}]
- test? (
- dev-python/unittest2[${PYTHON_USEDEP}]
- )
"
distutils_enable_tests pytest
src_prepare() {
+ sed -i -e 's:from unittest2:from unittest:' tests/test_pyclipper.py ||
die
distutils-r1_src_prepare
export SETUPTOOLS_SCM_PRETEND_VERSION="${PV/_p/.post}"
}