package/python-pyusb: enable host variant

The host variant of python-pyusb will be neded for Snagboot, so it is
enabled with this commit. In addition, we're adding a very simple test
case to validate that host-python-pyusb minimally works.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Thomas Petazzoni
2025-10-18 21:43:04 +02:00
committed by Julien Olivain
parent b2a657297d
commit 20afa3be7c
3 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import infra.basetest
class TestHostPythonPyusb(infra.basetest.BRHostPkgTest):
hostpkgs = ["host-python-pyusb"]
def test_run(self):
cmd = ["host/bin/python3", "-c", "import usb"]
infra.run_cmd_on_host(self.builddir, cmd)