dev-python/isort: Backport broken dependency fix

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2023-12-10 17:15:36 +01:00
parent 263cb71580
commit 2192e1edd7
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,16 @@
diff --git a/pyproject.toml b/pyproject.toml
index ae539490..11e229ad 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -41,11 +41,6 @@ include = [
[tool.poetry.dependencies]
python = ">=3.8.0"
-pipreqs = {version = "*", optional = true}
-requirementslib = {version = "*", optional = true}
-pip-api = {version = "*", optional = true}
-colorama = {version = ">=0.4.6", optional = true}
-setuptools = {version = "*", optional = true}
[tool.poetry.extras]
colors = ["colorama"]
@@ -39,6 +39,12 @@ BDEPEND="
distutils_enable_tests pytest
src_prepare() {
local PATCHES=(
# sigh, can't people just stop using poetry?!
# https://github.com/PyCQA/isort/commit/f7a6b0eea57e87155a367e2490b49b40f83c3944
"${FILESDIR}/${P}-poetry.patch"
)
# unbundle tomli
sed -i -e 's:from ._vendored ::' isort/settings.py || die
rm -r isort/_vendored || die