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