void-packages/srcpkgs/borgmatic/template
Renato Aguiar 90cd15d215 borgmatic: update to 1.3.5
Closes #11844.

Signed-off-by: Enno Boland <gottox@voidlinux.org>
2019-05-21 09:57:17 +02:00

30 lines
984 B
Bash

# Template file for 'borgmatic'
pkgname=borgmatic
version=1.3.5
revision=1
archs=noarch
build_style=python3-module
pycompile_module="borgmatic"
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@renag.me>"
license="GPL-3.0-only"
homepage="https://torsion.org/borgmatic/"
distfiles="${PYPI_SITE}/b/borgmatic/borgmatic-${version}.tar.gz"
checksum=2ec73795f9e198e98050e585e520855b41f3bf77a4cd36d4f333b2ee9d3a2955
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
}