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 0000000000..5bb3774c6f --- /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 7ae0e668c9..cfe3df642d 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