diff --git a/srcpkgs/ripe-atlas-tools/template b/srcpkgs/ripe-atlas-tools/template index dee72787f62..c7f6b72002f 100644 --- a/srcpkgs/ripe-atlas-tools/template +++ b/srcpkgs/ripe-atlas-tools/template @@ -1,22 +1,27 @@ # Template file for 'ripe-atlas-tools' pkgname=ripe-atlas-tools -version=2.3.0 -revision=4 +version=3.0.2 +revision=1 build_style=python3-module -pycompile_module="ripe/atlas/tools" hostmakedepends="python3-setuptools" -depends=" - python3-tzlocal python3-yaml python3-six python3-dateutil python3-openssl - python3-ripe-atlas-sagan python3-ripe-atlas-cousteau python3-IPy" -short_desc="The official command-line client for RIPE Atlas" +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 " license="GPL-3.0-or-later" homepage="https://github.com/ripe-ncc/ripe-atlas-tools" -distfiles="https://github.com/ripe-ncc/${pkgname}/archive/v${version}.tar.gz" -checksum=29d90c12b27f339cfb4f03d5cb758541f2c67060b1f619079d338b85d8c50931 +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}" -post_install() { - vinstall ripe-atlas-bash-completion.sh 644 \ - usr/share/bash-completion/completions ripe-atlas-tools +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 +}