void-packages/srcpkgs/urlwatch/template
2020-10-10 10:21:33 -04:00

28 lines
954 B
Bash

# Template file for 'urlwatch'
pkgname=urlwatch
version=2.21
revision=2
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="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://thp.io/2008/urlwatch/"
distfiles="${PYPI_SITE}/u/urlwatch/urlwatch-${version}.tar.gz"
checksum=c259e0169cc99114b54470d08a8312473159dfdbed1d712d1a222fd8a9d7291a
do_check() {
# skip the tests that require python modules that aren't packaged
# (pdftotext & pytesseract)
pytest -k "not (pdf or ocr)" -v
}
post_install() {
vlicense COPYING
}