commit:     b4f5b919fa681b54de41de184f80a6ef36242a2e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb  7 14:46:04 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Feb  7 14:46:46 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4f5b919

dev-python/isort: Fix poetry syntax error in 5.11.4

Closes: https://bugs.gentoo.org/892679
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/isort/isort-5.11.4.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev-python/isort/isort-5.11.4.ebuild 
b/dev-python/isort/isort-5.11.4.ebuild
index 86119ad4b7f7..426bfd0652b3 100644
--- a/dev-python/isort/isort-5.11.4.ebuild
+++ b/dev-python/isort/isort-5.11.4.ebuild
@@ -45,6 +45,8 @@ src_prepare() {
        rm -r isort/_vendored || die
        # leftover toml import used to determine .toml support
        sed -i -e 's:import toml:toml = True:' tests/unit/test_isort.py || die
+       # syntax error that triggers with new poetry-core
+       sed -i -e 's:pip-shims<=0.3.4:pip-shims:' pyproject.toml || die
 
        distutils-r1_src_prepare
 }

Reply via email to