commit: 6d84cae3056debe13673496b1614347bae26b36f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 9 14:43:59 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 12 18:54:42 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d84cae3
dev-python/irctokens: Add explicit IUSE=test
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/irctokens/irctokens-2.0.2.ebuild | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/dev-python/irctokens/irctokens-2.0.2.ebuild
b/dev-python/irctokens/irctokens-2.0.2.ebuild
index b151b080168b..b3f93f092b42 100644
--- a/dev-python/irctokens/irctokens-2.0.2.ebuild
+++ b/dev-python/irctokens/irctokens-2.0.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2023-2024 Gentoo Authors
+# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -22,10 +22,8 @@ SRC_URI="
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
-
-PATCHES=(
- "${FILESDIR}"/${PN}-2.0.2-exclude-tests.patch
-)
+IUSE="test"
+RESTRICT="!test? ( test )"
BDEPEND="
test? (
@@ -34,3 +32,7 @@ BDEPEND="
"
distutils_enable_tests unittest
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.2-exclude-tests.patch
+)