From efed567c0f73d432e752e74529eda162486935e4 Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Thu, 14 Sep 2023 11:03:10 -0400 Subject: [PATCH] python3-qrcode: update to 7.4.2. --- srcpkgs/python3-qrcode/files/README.voidlinux | 2 +- .../patches/qrcode_assert-has-calls.patch | 9 +++++++++ srcpkgs/python3-qrcode/template | 17 +++++++---------- 3 files changed, 17 insertions(+), 11 deletions(-) create mode 100644 srcpkgs/python3-qrcode/patches/qrcode_assert-has-calls.patch diff --git a/srcpkgs/python3-qrcode/files/README.voidlinux b/srcpkgs/python3-qrcode/files/README.voidlinux index 09539ea5d62..0ffee4d08f7 100644 --- a/srcpkgs/python3-qrcode/files/README.voidlinux +++ b/srcpkgs/python3-qrcode/files/README.voidlinux @@ -1,4 +1,4 @@ Some optional packages must be installed for additional functionality: - - python-Pillow: Image generation support + - python-Pillow: More image generation support diff --git a/srcpkgs/python3-qrcode/patches/qrcode_assert-has-calls.patch b/srcpkgs/python3-qrcode/patches/qrcode_assert-has-calls.patch new file mode 100644 index 00000000000..d8efa19885c --- /dev/null +++ b/srcpkgs/python3-qrcode/patches/qrcode_assert-has-calls.patch @@ -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]) diff --git a/srcpkgs/python3-qrcode/template b/srcpkgs/python3-qrcode/template index ae33cf832fe..ebe91ed2e61 100644 --- a/srcpkgs/python3-qrcode/template +++ b/srcpkgs/python3-qrcode/template @@ -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 " 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