urlwatch: update to 2.25.
This commit is contained in:
parent
6c9ce16f56
commit
797ada95a5
14
srcpkgs/urlwatch/patches/test_handler.patch
Normal file
14
srcpkgs/urlwatch/patches/test_handler.patch
Normal file
|
@ -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)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'urlwatch'
|
# Template file for 'urlwatch'
|
||||||
pkgname=urlwatch
|
pkgname=urlwatch
|
||||||
version=2.23
|
version=2.25
|
||||||
revision=2
|
revision=1
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
hostmakedepends="python3-setuptools"
|
hostmakedepends="python3-setuptools"
|
||||||
depends="python3-appdirs python3-keyring python3-minidb python3-requests
|
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:
|
# Check the Docs for optional packages:
|
||||||
# https://urlwatch.readthedocs.io/en/latest/dependencies.html#optional-packages
|
# https://urlwatch.readthedocs.io/en/latest/dependencies.html#optional-packages
|
||||||
checkdepends="python3-pytest python3-pycodestyle python3-docutils
|
checkdepends="python3-pytest python3-pycodestyle python3-docutils
|
||||||
python3-Pygments ${depends}"
|
python3-Pygments python3-jq ${depends}"
|
||||||
short_desc="Tool for monitoring webpages for updates"
|
short_desc="Tool for monitoring webpages for updates"
|
||||||
maintainer="RunningDroid <runningdroid@zoho.com>"
|
maintainer="RunningDroid <runningdroid@zoho.com>"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
homepage="https://thp.io/2008/urlwatch/"
|
homepage="https://thp.io/2008/urlwatch/"
|
||||||
distfiles="${PYPI_SITE}/u/urlwatch/urlwatch-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/u/urlwatch/urlwatch-${version}.tar.gz"
|
||||||
checksum=73a29efbef80c02bc8c285fca427793979c0e4bef40bc084df5de5436378b842
|
checksum=6802297d3318286e7f3d36b9a4567a2fb09b0ae779d4b76811dd29a7281c1f8a
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
# skip the tests that require python modules that aren't packaged
|
# skip the tests that require python modules that aren't packaged
|
||||||
# (pdftotext & pytesseract)
|
# (pdftotext & pytesseract)
|
||||||
pytest -k "not (pdf or ocr or json)" -v
|
pytest -k 'not (pdf or ocr)' -v
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
|
Loading…
Reference in a new issue