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:
parent
bcc080cb26
commit
37f05c2497
@ -2912,6 +2912,7 @@ F: package/python3/
|
||||
F: package/python-augeas/
|
||||
F: package/python-flask-expects-json/
|
||||
F: package/python-git/
|
||||
F: package/python-qrcode/
|
||||
F: package/python-serial/
|
||||
F: package/python-unittest-xml-reporting/
|
||||
F: package/qextserialport/
|
||||
|
@ -1214,6 +1214,7 @@ menu "External python modules"
|
||||
source "package/python-pyxb/Config.in"
|
||||
source "package/python-pyyaml/Config.in"
|
||||
source "package/python-pyzmq/Config.in"
|
||||
source "package/python-qrcode/Config.in"
|
||||
source "package/python-raven/Config.in"
|
||||
source "package/python-redis/Config.in"
|
||||
source "package/python-reentry/Config.in"
|
||||
|
18
package/python-qrcode/Config.in
Normal file
18
package/python-qrcode/Config.in
Normal file
@ -0,0 +1,18 @@
|
||||
config BR2_PACKAGE_PYTHON_QRCODE
|
||||
bool "python-qrcode"
|
||||
help
|
||||
Pure python QR Code generator
|
||||
|
||||
https://github.com/lincolnloop/python-qrcode
|
||||
|
||||
if BR2_PACKAGE_PYTHON_QRCODE
|
||||
|
||||
config BR2_PACKAGE_PYTHON_QRCODE_SVG
|
||||
bool "SVG support"
|
||||
select BR2_PACKAGE_PYTHON3_PYEXPAT
|
||||
|
||||
config BR2_PACKAGE_PYTHON_QRCODE_PIL
|
||||
bool "PIL support"
|
||||
select BR2_PACKAGE_PYTHON_PILLOW
|
||||
|
||||
endif
|
5
package/python-qrcode/python-qrcode.hash
Normal file
5
package/python-qrcode/python-qrcode.hash
Normal file
@ -0,0 +1,5 @@
|
||||
# md5 from https://pypi.python.org/pypi/qrcode/json
|
||||
md5 124103c685e96ba3b7a1616760f31c11 qrcode-7.3.1.tar.gz
|
||||
sha256 375a6ff240ca9bd41adc070428b5dfc1dcfbb0f2507f1ac848f6cded38956578 qrcode-7.3.1.tar.gz
|
||||
# Locally computed
|
||||
sha256 40dfb903c94ee3f789500131311186548ecba5cefd3557623d7700e2522ab994 LICENSE
|
14
package/python-qrcode/python-qrcode.mk
Normal file
14
package/python-qrcode/python-qrcode.mk
Normal file
@ -0,0 +1,14 @@
|
||||
################################################################################
|
||||
#
|
||||
# python-qrcode
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PYTHON_QRCODE_VERSION = 7.3.1
|
||||
PYTHON_QRCODE_SOURCE = qrcode-$(PYTHON_QRCODE_VERSION).tar.gz
|
||||
PYTHON_QRCODE_SITE = https://files.pythonhosted.org/packages/94/9f/31f33cdf3cf8f98e64c42582fb82f39ca718264df61957f28b0bbb09b134
|
||||
PYTHON_QRCODE_SETUP_TYPE = setuptools
|
||||
PYTHON_QRCODE_LICENSE = BSD-3-Clause
|
||||
PYTHON_QRCODE_LICENSE_FILES = LICENSE
|
||||
|
||||
$(eval $(python-package))
|
3
support/testing/tests/package/sample_python_qrcode.py
Normal file
3
support/testing/tests/package/sample_python_qrcode.py
Normal file
@ -0,0 +1,3 @@
|
||||
import qrcode
|
||||
import qrcode.image.svg
|
||||
img = qrcode.make('Some data here', image_factory=qrcode.image.svg.SvgImage)
|
12
support/testing/tests/package/test_python_qrcode.py
Normal file
12
support/testing/tests/package/test_python_qrcode.py
Normal 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"]
|
Loading…
Reference in New Issue
Block a user