package/python-qrcode: new package

Needed by python-autobahn encryption subpackage.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Thomas Petazzoni
2022-08-08 11:04:12 +02:00
parent bcc080cb26
commit 37f05c2497
7 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
import qrcode
import qrcode.image.svg
img = qrcode.make('Some data here', image_factory=qrcode.image.svg.SvgImage)

View File

@@ -0,0 +1,12 @@
from tests.package.test_python import TestPythonPackageBase
class TestPythonPy3Qrcode(TestPythonPackageBase):
__test__ = True
config = TestPythonPackageBase.config + \
"""
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON_QRCODE=y
BR2_PACKAGE_PYTHON_QRCODE_SVG=y
"""
sample_scripts = ["tests/package/sample_python_qrcode.py"]