void-packages/srcpkgs/peru/template

34 lines
1.0 KiB
Bash

# Template file for 'peru'
pkgname=peru
version=1.3.2
revision=1
build_style=python3-pep517
hostmakedepends="hatchling python3-wheel"
depends="curl git mercurial python3 python3-docopt python3-yaml"
checkdepends="${depends} python3-pytest rsync subversion"
short_desc="Tool for fetching code"
maintainer="Andy Weidenbaum <atweiden@tutanota.de>"
license="MIT"
homepage="https://github.com/buildinspace/peru"
distfiles="https://github.com/buildinspace/peru/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=5778f76e83aedc1b01cd77992716a855c134346168a9167c37b8c1ac9c22dfa3
do_check() {
local skiptests
skiptests+=" test_curl_plugin_fetch or"
skiptests+=" test_curl_plugin_fetch_archives or"
skiptests+=" test_curl_plugin_reup or"
skiptests+=" test_git_plugin_with_relative_submodule or"
skiptests+=" test_git_plugin_with_submodule or"
skiptests+=" test_plugin_fetch or"
skiptests+=" test_plugin_get_reup_fields"
PYTHONPATH="$(cd tests && pwd)" python3 -m pytest -k "not (${skiptests})"
}
post_install() {
vlicense LICENSE
vdoc README.md
}