commit:     b310ce46eb28a39d304141ee5a88002fe83816da
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Mar 27 17:42:51 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Mar 27 17:42:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b310ce46

dev-python/compreffor: patch instead of sed

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-python/compreffor/compreffor-0.5.1.ebuild          | 14 ++------------
 dev-python/compreffor/files/remove-pytest-runner.patch | 11 +++++++++++
 2 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/dev-python/compreffor/compreffor-0.5.1.ebuild 
b/dev-python/compreffor/compreffor-0.5.1.ebuild
index f4f87b9e2..f19a4ade2 100644
--- a/dev-python/compreffor/compreffor-0.5.1.ebuild
+++ b/dev-python/compreffor/compreffor-0.5.1.ebuild
@@ -25,16 +25,6 @@ BDEPEND="
        app-arch/unzip
        dev-python/cython[${PYTHON_USEDEP}]
 "
+PATCHES=( "${FILESDIR}/remove-pytest-runner.patch" )
 
-distutils_enable_tests pytest
-
-src_prepare() {
-       #undesired dependency
-       sed -i "s|setup_requires=pytest_runner + wheel,|setup_requires=wheel,|" 
setup.py
-       default
-}
-
-python_test() {
-       distutils_install_for_testing
-       default
-}
+distutils_enable_tests --install pytest

diff --git a/dev-python/compreffor/files/remove-pytest-runner.patch 
b/dev-python/compreffor/files/remove-pytest-runner.patch
new file mode 100644
index 000000000..f3734f3cc
--- /dev/null
+++ b/dev-python/compreffor/files/remove-pytest-runner.patch
@@ -0,0 +1,11 @@
+--- a/setup.py 2021-03-27 18:38:41.032816105 +0100
++++ b/setup.py 2021-03-27 18:38:57.087088810 +0100
+@@ -150,7 +150,7 @@
+     cmdclass={
+         'build_ext': custom_build_ext,
+     },
+-    setup_requires=pytest_runner + wheel,
++    setup_requires=wheel,
+     tests_require=[
+         'pytest>=2.8',
+     ],

Reply via email to