commit:     6a12fd66406b2ca80dc297bf0980f5e25b54031a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 23 14:29:56 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Dec 23 14:36:31 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a12fd66

dev-python/smbus2: Use pytest

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

 dev-python/smbus2/smbus2-0.4.2.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dev-python/smbus2/smbus2-0.4.2.ebuild 
b/dev-python/smbus2/smbus2-0.4.2.ebuild
index f3346d580591..fda5e2404367 100644
--- a/dev-python/smbus2/smbus2-0.4.2.ebuild
+++ b/dev-python/smbus2/smbus2-0.4.2.ebuild
@@ -5,12 +5,13 @@ EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
 PYTHON_COMPAT=( python3_{8..10} )
+
 inherit distutils-r1
 
 DESCRIPTION="A drop-in replacement for smbus-cffi/smbus-python in pure Python"
 HOMEPAGE="
        https://pypi.org/project/smbus2/
-       https://github.com/kplindegaard/smbus2
+       https://github.com/kplindegaard/smbus2/
 "
 SRC_URI="
        https://github.com/kplindegaard/smbus2/archive/refs/tags/${PV}.tar.gz
@@ -21,4 +22,8 @@ LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64"
 
-distutils_enable_tests nose
+distutils_enable_tests pytest
+
+python_test() {
+       epytest -s
+}

Reply via email to