diff --git a/srcpkgs/urlwatch/patches/test_handler.patch b/srcpkgs/urlwatch/patches/test_handler.patch new file mode 100644 index 00000000000..73f301e49f9 --- /dev/null +++ b/srcpkgs/urlwatch/patches/test_handler.patch @@ -0,0 +1,14 @@ +Work around https://github.com/thp/urlwatch/issues/677 + +diff --git a/lib/urlwatch/tests/test_handler.py b/lib/urlwatch/tests/test_handler.py +index 736536a..fac9449 100644 +--- a/lib/urlwatch/tests/test_handler.py ++++ b/lib/urlwatch/tests/test_handler.py +@@ -89,6 +89,7 @@ def test_pep8_conformance(): + + class ConfigForTest(CommandConfig): + def __init__(self, config, urls, cache, hooks, verbose): ++ sys.argv = sys.argv[:1] + (prefix, bindir) = os.path.split(os.path.dirname(os.path.abspath(sys.argv[0]))) + super().__init__('urlwatch', os.path.dirname(__file__), bindir, prefix, config, urls, hooks, cache, verbose) + diff --git a/srcpkgs/urlwatch/template b/srcpkgs/urlwatch/template index a10260a19af..0d15244c6ac 100644 --- a/srcpkgs/urlwatch/template +++ b/srcpkgs/urlwatch/template @@ -1,7 +1,7 @@ # Template file for 'urlwatch' pkgname=urlwatch -version=2.23 -revision=2 +version=2.25 +revision=1 build_style=python3-module hostmakedepends="python3-setuptools" depends="python3-appdirs python3-keyring python3-minidb python3-requests @@ -9,18 +9,18 @@ depends="python3-appdirs python3-keyring python3-minidb python3-requests # Check the Docs for optional packages: # https://urlwatch.readthedocs.io/en/latest/dependencies.html#optional-packages checkdepends="python3-pytest python3-pycodestyle python3-docutils - python3-Pygments ${depends}" + python3-Pygments python3-jq ${depends}" short_desc="Tool for monitoring webpages for updates" maintainer="RunningDroid " license="BSD-3-Clause" homepage="https://thp.io/2008/urlwatch/" distfiles="${PYPI_SITE}/u/urlwatch/urlwatch-${version}.tar.gz" -checksum=73a29efbef80c02bc8c285fca427793979c0e4bef40bc084df5de5436378b842 +checksum=6802297d3318286e7f3d36b9a4567a2fb09b0ae779d4b76811dd29a7281c1f8a do_check() { # skip the tests that require python modules that aren't packaged # (pdftotext & pytesseract) - pytest -k "not (pdf or ocr or json)" -v + pytest -k 'not (pdf or ocr)' -v } post_install() {