void-packages/srcpkgs/borgmatic/template
2020-05-20 21:53:17 +02:00

30 lines
963 B
Bash

# Template file for 'borgmatic'
pkgname=borgmatic
version=1.5.4
revision=1
archs=noarch
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="borg python3-setuptools python3-ruamel.yaml python3-pykwalify
python3-colorama"
checkdepends="python3-ruamel.yaml python3-pytest python3-flexmock
python3-pykwalify"
short_desc="Wrapper script for the Borg backup software"
maintainer="Renato Aguiar <renato@renatoaguiar.net>"
license="GPL-3.0-only"
homepage="https://torsion.org/borgmatic/"
distfiles="${PYPI_SITE}/b/borgmatic/borgmatic-${version}.tar.gz"
checksum=a2d47c52cf3794e72f6e2c4637662114315cc0380fa7be204fbf49ba5e28376c
do_check() {
# The tests use the NEWS file to get version and checks against
# setup.py's version, see: tests/integration/test_version.py
echo ${version} > ${wrksrc}/NEWS
python3 -m pytest
}
post_install() {
# remove tests directory polluting site-packages
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/tests
}