void-packages/srcpkgs/ripe-atlas-tools/template

28 lines
1.0 KiB
Bash

# Template file for 'ripe-atlas-tools'
pkgname=ripe-atlas-tools
version=3.0.2
revision=3
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-tzlocal python3-yaml python3-dateutil python3-openssl
python3-ripe-atlas-sagan python3-ripe-atlas-cousteau python3-IPy python3-requests"
checkdepends="${depends} python3-Sphinx python3-pytest"
short_desc="Official command-line client for RIPE Atlas"
maintainer="johannes <johannes.brechtmann@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/ripe-ncc/ripe-atlas-tools"
changelog="https://raw.githubusercontent.com/RIPE-NCC/ripe-atlas-tools/master/CHANGES.rst"
distfiles="https://github.com/RIPE-NCC/ripe-atlas-tools/archive/refs/tags/v${version}.tar.gz"
checksum=9bc4f17ad77cc3c7b64ca05c18395bc0f2f46fd2d4fde6e14e60c3e02fe1a119
make_check_pre="env PYTHONPATH=. PATH=scripts:${PATH}"
pre_check() {
# hack to make pytest work with namespace packages
rm ripe/atlas/__init__.py
rm ripe/__init__.py
}
post_install() {
vcompletion ripe-atlas-bash-completion.sh bash ripe-atlas
}