void-packages/srcpkgs/urlwatch/template

29 lines
967 B
Bash

# Template file for 'urlwatch'
pkgname=urlwatch
version=2.23
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-appdirs python3-keyring python3-minidb python3-requests
python3-yaml python3-lxml python3-cssselect"
# 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}"
short_desc="Tool for monitoring webpages for updates"
maintainer="RunningDroid <runningdroid@zoho.com>"
license="BSD-3-Clause"
homepage="https://thp.io/2008/urlwatch/"
distfiles="${PYPI_SITE}/u/urlwatch/urlwatch-${version}.tar.gz"
checksum=73a29efbef80c02bc8c285fca427793979c0e4bef40bc084df5de5436378b842
do_check() {
# skip the tests that require python modules that aren't packaged
# (pdftotext & pytesseract)
pytest -k "not (pdf or ocr or json)" -v
}
post_install() {
vlicense COPYING
}