commit:     1fea27ae0c3459974052aa8bd43668c1c42d4f07
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 21 06:39:38 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Mar 21 06:49:05 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fea27ae

dev-python/pychromecast: Use pypi.eclass

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

 dev-python/pychromecast/pychromecast-13.0.4.ebuild | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/dev-python/pychromecast/pychromecast-13.0.4.ebuild 
b/dev-python/pychromecast/pychromecast-13.0.4.ebuild
index 60fbf00b21ea..bd0d54534c96 100644
--- a/dev-python/pychromecast/pychromecast-13.0.4.ebuild
+++ b/dev-python/pychromecast/pychromecast-13.0.4.ebuild
@@ -3,14 +3,18 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..10} )
 DISTUTILS_USE_PEP517=setuptools
-inherit distutils-r1
+PYPI_NO_NORMALIZE=1
+PYPI_PN=PyChromecast
+PYTHON_COMPAT=( python3_{9..10} )
+
+inherit distutils-r1 pypi
 
 DESCRIPTION="Python module to talk to Google Chromecast"
-HOMEPAGE="https://github.com/home-assistant-libs/pychromecast";
-S="${WORKDIR}/PyChromecast-${PV}"
-SRC_URI="mirror://pypi/P/PyChromecast/PyChromecast-${PV}.tar.gz"
+HOMEPAGE="
+       https://github.com/home-assistant-libs/pychromecast/
+       https://pypi.org/project/PyChromecast/
+"
 
 LICENSE="MIT"
 SLOT="0"
@@ -19,4 +23,5 @@ KEYWORDS="amd64 x86"
 RDEPEND="
        >=dev-python/casttube-0.2.0[${PYTHON_USEDEP}]
        >=dev-python/protobuf-python-3.19.1[${PYTHON_USEDEP}]
-       >=dev-python/zeroconf-0.25.1[${PYTHON_USEDEP}]"
+       >=dev-python/zeroconf-0.25.1[${PYTHON_USEDEP}]
+"

Reply via email to