mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
47 lines
1.3 KiB
Text
47 lines
1.3 KiB
Text
# Contributor: Thiago Perrotta <tbperrotta@gmail.com>
|
|
# Maintainer: Thiago Perrotta <tbperrotta@gmail.com>
|
|
pkgname=urlwatch
|
|
pkgver=2.28
|
|
pkgrel=2
|
|
pkgdesc="Tool for monitoring webpages for updates"
|
|
url="https://thp.io/2008/urlwatch/"
|
|
arch="noarch !ppc64le" # blocked by py3-keyring
|
|
license="BSD-3-Clause"
|
|
depends="
|
|
python3
|
|
py3-appdirs
|
|
py3-cssselect
|
|
py3-keyring
|
|
py3-lxml
|
|
py3-minidb
|
|
py3-requests
|
|
py3-yaml
|
|
"
|
|
makedepends="py3-setuptools py3-gpep517"
|
|
checkdepends="py3-pytest py3-docutils py3-pycodestyle"
|
|
subpackages="$pkgname-doc $pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/u/urlwatch/urlwatch-$pkgver.tar.gz
|
|
lxml-5.patch
|
|
"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
21a662006dc92c0c636ef0beebc4f2ec90b82182aa0ba94a3348026c2c001b6d74198a14c198f681c8e773b640b6030b63de1a081984ea4d1bbc1e2648bc4161 urlwatch-2.28.tar.gz
|
|
ade44bf3953406c26699d7dbf3377c283b75e7ba38cba9710aad2a4fe488ce49435874e73a52f8009572692d4cc23b25f06ecfc6c7e5866745b4617daa3e001a lxml-5.patch
|
|
"
|