commit:     adfa9a9f9add18a269f9cb5f5deb2e7cb7267ced
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 26 15:18:48 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 26 15:25:46 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adfa9a9f

dev-python/httpx: Fix respecting USE=-cli

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/httpx/httpx-0.23.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/httpx/httpx-0.23.1-r1.ebuild 
b/dev-python/httpx/httpx-0.23.1-r1.ebuild
index 41214b718b03..94aea019b8e3 100644
--- a/dev-python/httpx/httpx-0.23.1-r1.ebuild
+++ b/dev-python/httpx/httpx-0.23.1-r1.ebuild
@@ -56,7 +56,7 @@ distutils_enable_tests pytest
 
 src_prepare() {
        if ! use cli; then
-               sed -i -e '/console_scripts/d' setup.py || die
+               sed -i -e '/^httpx =/d' pyproject.toml || die
        fi
        sed -i -e '/rfc3986/s:,<2::' pyproject.toml || die
        distutils-r1_src_prepare

Reply via email to