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

Closes: https://bugs.gentoo.org/892679
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2023-02-07 15:46:04 +01:00
parent bef4ad3b04
commit b4f5b919fa

View File

@@ -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
}