commit:     9aa9c45f635cde503bb7473990b7b9ac1c79d45e
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Oct  9 16:42:07 2021 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Sat Oct  9 17:00:52 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9aa9c45f

dev-python/thriftrw: tool:pytest

Closes: https://bugs.gentoo.org/817203
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch | 11 +++++++++++
 dev-python/thriftrw/thriftrw-1.8.1.ebuild                  |  5 ++++-
 2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch 
b/dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch
new file mode 100644
index 000000000..5bb3774c6
--- /dev/null
+++ b/dev-python/thriftrw/files/thriftrw-1.8.1-tool-pytest.patch
@@ -0,0 +1,11 @@
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -2,7 +2,7 @@
+ create-wheel = yes
+ python-file-with-version = thriftrw/__init__.py
+ 
+-[pytest]
++[tool:pytest]
+ addopts = --tb short --benchmark-autosave --benchmark-save-data
+ 
+ [egg_info]

diff --git a/dev-python/thriftrw/thriftrw-1.8.1.ebuild 
b/dev-python/thriftrw/thriftrw-1.8.1.ebuild
index 7ae0e668c..cfe3df642 100644
--- a/dev-python/thriftrw/thriftrw-1.8.1.ebuild
+++ b/dev-python/thriftrw/thriftrw-1.8.1.ebuild
@@ -26,6 +26,9 @@ DEPEND="
        )
 "
 
-PATCHES=( "${FILESDIR}/${P}-no-install-examples.patch" )
+PATCHES=(
+       "${FILESDIR}/${P}-no-install-examples.patch"
+       "${FILESDIR}/${P}-tool-pytest.patch"
+)
 
 distutils_enable_tests pytest

Reply via email to