void-packages/srcpkgs/borgmatic/template

30 lines
964 B
Bash
Raw Normal View History

# Template file for 'borgmatic'
pkgname=borgmatic
2018-10-15 04:44:17 +02:00
version=1.2.8
revision=1
2018-10-07 19:12:54 +02:00
noarch=yes
build_style=python3-module
pycompile_module="borgmatic"
2018-10-07 19:12:54 +02:00
hostmakedepends="python3-setuptools"
depends="borg python3-setuptools python3-ruamel.yaml python3-pykwalify"
2018-10-01 03:48:36 +02:00
checkdepends="python3-ruamel.yaml python3-pytest python3-flexmock
python3-pykwalify"
2018-10-07 19:12:54 +02:00
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"
2018-10-15 04:44:17 +02:00
checksum=a8eeee4a9bb2741acdb27833c1083ed49b136c92792c669a2b8734825fe7e67c
2018-10-01 03:48:36 +02:00
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
}
2018-10-15 04:44:17 +02:00
2018-10-07 19:12:54 +02:00
post_install() {
# remove tests directory polluting site-packages
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/tests
}