mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 22:47:14 -08:00
dev-python/isort: Backport broken dependency fix
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user