commit:     fd7ce548d7622126c744b22b24d079102d57e4fa
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Fri Mar 18 03:27:35 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 18 04:04:09 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fd7ce548

dev-python/hypercorn: switch to pyproject2setuppy

Closes: https://bugs.gentoo.org/834994
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 dev-python/hypercorn/hypercorn-0.13.2.ebuild | 17 +++++++----------
 1 file changed, 7 insertions(+), 10 deletions(-)

diff --git a/dev-python/hypercorn/hypercorn-0.13.2.ebuild 
b/dev-python/hypercorn/hypercorn-0.13.2.ebuild
index 6346ab8cb..59803657e 100644
--- a/dev-python/hypercorn/hypercorn-0.13.2.ebuild
+++ b/dev-python/hypercorn/hypercorn-0.13.2.ebuild
@@ -3,16 +3,9 @@
 
 EAPI=8
 
-DISTUTILS_USE_PEP517=poetry
-DOCS_BUILDER="sphinx"
-DOCS_DEPEND="
-       dev-python/sphinxcontrib-napoleon
-       dev-python/pydata-sphinx-theme
-"
-DOCS_DIR="${S}/docs"
+DISTUTILS_USE_SETUPTOOLS=pyproject.toml
 PYTHON_COMPAT=( python3_{8..10} )
-
-inherit distutils-r1 docs
+inherit distutils-r1
 
 DESCRIPTION="ASGI Server based on Hyper libraries and inspired by Gunicorn"
 HOMEPAGE="
@@ -21,7 +14,7 @@ HOMEPAGE="
        https://github.com/pgjones/hypercorn
        https://pypi.org/project/Hypercorn/
 "
-SRC_URI="https://github.com/pgjones/hypercorn/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+SRC_URI="https://github.com/pgjones/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="MIT"
 SLOT="0"
@@ -47,3 +40,7 @@ BDEPEND="
 PATCHES=( "${FILESDIR}/${P}-no-coverage.patch" )
 
 distutils_enable_tests pytest
+
+distutils_enable_sphinx docs \
+       dev-python/sphinxcontrib-napoleon \
+       dev-python/pydata-sphinx-theme

Reply via email to