python3-qrcode: update to 7.4.2.

This commit is contained in:
Joel Beckmeyer 2023-09-14 11:03:10 -04:00 committed by cinerea0
parent fe501099ff
commit efed567c0f
3 changed files with 17 additions and 11 deletions

View File

@ -1,4 +1,4 @@
Some optional packages must be installed for additional functionality:
- python-Pillow: Image generation support
- python-Pillow: More image generation support

View File

@ -0,0 +1,9 @@
diff -rupN --no-dereference qrcode-7.4.2/qrcode/tests/test_release.py qrcode-7.4.2-new/qrcode/tests/test_release.py
--- qrcode-7.4.2/qrcode/tests/test_release.py 2023-02-05 23:11:38.000000000 +0100
+++ qrcode-7.4.2-new/qrcode/tests/test_release.py 2023-05-12 13:59:22.069372313 +0200
@@ -37,4 +37,4 @@ class UpdateManpageTests(unittest.TestCa
.replace("version", "3.11")
.replace("date", datetime.datetime.now().strftime("%-d %b %Y"))
)
- mock_file().write.has_calls([mock.call(line) for line in expected])
+ mock_file().write.assert_has_calls([mock.call(line) for line in expected if line])

View File

@ -1,21 +1,18 @@
# Template file for 'python3-qrcode'
pkgname=python3-qrcode
version=6.1
revision=7
version=7.4.2
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-six"
checkdepends="python3-six"
short_desc="QR Code image generator (Python3)"
depends="python3-pypng python3-typing_extensions"
checkdepends="python3-pytest ${depends}"
short_desc="QR Code image generator"
maintainer="Charles E. Lehner <cel@celehner.com>"
license="BSD-3-Clause"
homepage="https://github.com/lincolnloop/python-qrcode"
changelog="https://raw.githubusercontent.com/lincolnloop/python-qrcode/main/CHANGES.rst"
distfiles="${PYPI_SITE}/q/qrcode/qrcode-${version}.tar.gz"
checksum=505253854f607f2abf4d16092c61d4e9d511a3b4392e60bff957a68592b04369
do_check() {
python3 setup.py test
}
checksum=9dd969454827e127dbd93696b20747239e6d540e082937c90f14ac95b30f5845
post_install() {
vlicense LICENSE