mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 04:44:57 +02:00
60 lines
1.4 KiB
Text
60 lines
1.4 KiB
Text
# Contributor: fossdd <fossdd@pwned.life>
|
|
# Maintainer: fossdd <fossdd@pwned.life>
|
|
pkgname=nvchecker
|
|
pkgver=2.18
|
|
pkgrel=0
|
|
pkgdesc="New version checker for software releases"
|
|
url="https://github.com/lilydjwg/nvchecker"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="
|
|
py3-curl
|
|
py3-platformdirs
|
|
py3-structlog
|
|
py3-tornado
|
|
python3
|
|
"
|
|
makedepends="
|
|
git
|
|
py3-aiohttp
|
|
py3-docutils
|
|
py3-flaky
|
|
py3-gobject3
|
|
py3-gpep517
|
|
py3-pygments
|
|
py3-setuptools
|
|
py3-toml
|
|
py3-wheel
|
|
"
|
|
checkdepends="
|
|
py3-pytest-asyncio
|
|
py3-pytest-httpbin
|
|
pytest
|
|
"
|
|
install="$pkgname.post-install"
|
|
subpackages="$pkgname-pyc $pkgname-doc $pkgname-bash-completion"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/lilydjwg/nvchecker/archive/refs/tags/v$pkgver.tar.gz"
|
|
options="!check" # tests fail
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
make -C docs man
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer "$builddir"/.dist/*.whl
|
|
.testenv/bin/python3 -m pytest -v
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
install -Dm644 scripts/nvtake.bash_completion "$pkgdir"/usr/share/bash-completion/completions/nvtake
|
|
install -Dm644 docs/_build/man/nvchecker.1 -t "$pkgdir"/usr/share/man/man1/
|
|
}
|
|
sha512sums="
|
|
46c14ae1ede8c60c3848c7cd8e114dbf44b7fcfc916cc458499c343e14c33d86e2ef0dc7e07d18fa35906cd820c69c2178ed0ae7b91851d45ac53399a0633576 nvchecker-2.18.tar.gz
|
|
"
|