void-packages/srcpkgs/borgmatic/template
2020-10-10 10:21:10 -04:00

26 lines
854 B
Bash

# Template file for 'borgmatic'
pkgname=borgmatic
version=1.5.8
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="borg python3-setuptools python3-ruamel.yaml python3-pykwalify
python3-colorama python3-requests"
checkdepends="${depends} python3-pytest-cov python3-flexmock"
short_desc="Wrapper script for the Borg backup software"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-only"
homepage="https://torsion.org/borgmatic/"
distfiles="${PYPI_SITE}/b/borgmatic/borgmatic-${version}.tar.gz"
checksum=707ed1bdffd6b8bec2d74dca36cc2665081c8db8590241bf6a72a3378928dd65
do_check() {
# runs not yet installed self
rm tests/integration/commands/test_borgmatic.py
python3 -m pytest
}
post_install() {
# remove tests directory polluting site-packages
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/tests
}