From f0059f1f8f2134d255fc67032c7a87c0f5d908de Mon Sep 17 00:00:00 2001 From: INODE64 Date: Wed, 22 Feb 2023 17:17:43 +0100 Subject: [PATCH] user adapt the ebuild to use PEP517 use pypy.eclass remove redundant and unnecessary dependencies remove the test because it does not have Check with pkgcheck 0.10.22 Signed-off-by: INODE64 --- dev-python/pygatt/Manifest | 2 +- dev-python/pygatt/pygatt-4.0.5-r1.ebuild | 25 +++++------------------- 2 files changed, 6 insertions(+), 21 deletions(-) diff --git a/dev-python/pygatt/Manifest b/dev-python/pygatt/Manifest index 4b0bb219e..ad3ae9de8 100644 --- a/dev-python/pygatt/Manifest +++ b/dev-python/pygatt/Manifest @@ -1,3 +1,3 @@ DIST pygatt-4.0.5.tar.gz 40109 BLAKE2B a08849cd5d9e3f1d8a9015d98fec51e3cd659da52ed912dad4762921cc85c73373aaa8637abaf24d8e14162b2e9526b21eaf1bb83302d03b11ff0e4359fb38c7 SHA512 c84368dfaf9b3b6d3edd4cf424c470d4735c96dbed920d5217c606be866c655b1435fc1179226888f6f4add628b553d38490048f0149828e8a1c5df4fbcf24cc -EBUILD pygatt-4.0.5-r1.ebuild 792 BLAKE2B 6660d84526cf78a633d5187e52ee7a48990ab49c964475effb7f12a424737368aa6cf161d29be9e4182048cc652f77674ec84da347922719e19ae7f6ad922274 SHA512 60f614fb5d1547cbb26ec1f54cc983177e6a74b3d478b0da7de87992681b80c6714eb8051c7ce0e9d3709e1b2f13fd36365bcfe4634a7271514612fa3e48e042 +EBUILD pygatt-4.0.5-r1.ebuild 505 BLAKE2B 67c4e347cafa663be577b3e793a23909223774d839f55d57f3f5783f4cbfcc6bdc11ce49d30b47612f82fef5b2901fd87ae3ab7d8f829369d0b3d0c9cf94a3de SHA512 7103116c770fad7a287b69e479b1dfc424ff4225a1722a042037fad6d8aa798366deccf87d617fd2a3284d38ff3e0b535b14c86e8fd43ae96334d7a3d26312a0 MISC metadata.xml 539 BLAKE2B 9ca1b457ae219998e798dbe06d1f2a1c37f49ae4de06edc01d85af6f59d75ec17ed554debfdac131b067f74b8ed8b1c3e26f0e34800b1db104dae469fa56eeb0 SHA512 f63379b5ea5d8a338a384dbae0a3df2fa7ed47a2699c3574dc832211d600297f61a51917489ace53c47d4665e522ffe81f6aab083e1c7f952376cc563ff7c0cf diff --git a/dev-python/pygatt/pygatt-4.0.5-r1.ebuild b/dev-python/pygatt/pygatt-4.0.5-r1.ebuild index 1950c020b..e57dad5b5 100644 --- a/dev-python/pygatt/pygatt-4.0.5-r1.ebuild +++ b/dev-python/pygatt/pygatt-4.0.5-r1.ebuild @@ -1,35 +1,20 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 +DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{9..11} ) -inherit distutils-r1 +inherit distutils-r1 pypi DESCRIPTION="Python Bluetooth LE (Low Energy) and GATT Library" HOMEPAGE="https://github.com/peplin/pygatt https://pypi.org/project/pygatt/" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" LICENSE="|| ( Apache-2.0 MIT )" SLOT="0" KEYWORDS="amd64 arm arm64 x86" -IUSE="test" -RESTRICT="!test? ( test )" -DOCS="README.rst" +DOCS=( CHANGELOG.rst README.rst ) -RDEPEND="dev-python/pyserial[${PYTHON_USEDEP}] - dev-python/enum-compat[${PYTHON_USEDEP}]" -BDEPEND=" - dev-python/pip[${PYTHON_USEDEP}] - dev-python/setuptools[${PYTHON_USEDEP}] - test? ( - dev-python/pytest[${PYTHON_USEDEP}] - )" - -python_test() { - py.test -v -v || die -} - -distutils_enable_tests pytest +RDEPEND="dev-python/pyserial[${PYTHON_USEDEP}]"