commit:     0211d7917a2811d34bfd8d37e3ecbe09cbe9db57
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Thu Sep 16 00:40:16 2021 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu Sep 16 00:40:27 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0211d791

dev-python/black-21.9_beta0: Fix setuptools_scm dep in setup.cfg

Closes: https://bugs.gentoo.org/813258
Package-Manager: Portage-3.0.23, Repoman-3.0.3
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-python/black/black-21.9_beta0.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-python/black/black-21.9_beta0.ebuild 
b/dev-python/black/black-21.9_beta0.ebuild
index 58c092b5e34..59d306a8d08 100644
--- a/dev-python/black/black-21.9_beta0.ebuild
+++ b/dev-python/black/black-21.9_beta0.ebuild
@@ -43,7 +43,8 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=${MY_PV}
 
 src_prepare() {
        # remove unnecessary bind that worked around broken 6.1.0/6.2.0 releases
-       sed -i -e '/setuptools_scm/s:~=:>=:' setup.cfg || die
+       sed -i -e '/setuptools_scm/s:~=:>=:' \
+               -e 's/setuptools_scm\[toml\]>=[0-9.]*/setuptools_scm[toml]/' 
setup.cfg || die
        distutils-r1_src_prepare
 }
 

Reply via email to