commit:     7a78af1bbbc601dd80f7fad2192c047de031d470
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu Mar  6 22:16:05 2025 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Thu Mar  6 22:16:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7a78af1b

dev-python/libusb1: Fix test execution

One test still fails for me, although that might be only for Python 3.13. I've
now added a newer version of this package in Gentoo, but I no longer have the 
older
Python versions needed here, so let's keep this for now.

Closes: https://bugs.gentoo.org/937360
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 dev-python/libusb1/libusb1-3.1.0.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/dev-python/libusb1/libusb1-3.1.0.ebuild 
b/dev-python/libusb1/libusb1-3.1.0.ebuild
index 7dc2eae54..cb4f6020e 100644
--- a/dev-python/libusb1/libusb1-3.1.0.ebuild
+++ b/dev-python/libusb1/libusb1-3.1.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020-2024 Gentoo Authors
+# Copyright 2020-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -20,4 +20,10 @@ KEYWORDS="~amd64 ~x86"
 
 RDEPEND="virtual/libusb"
 
-distutils_enable_tests setup.py
+distutils_enable_tests unittest
+
+src_prepare() {
+       # Don't need this.
+       rm -r usb1/__pyinstaller || die
+       default
+}

Reply via email to