void-packages/srcpkgs/borgmatic/template

27 lines
1.2 KiB
Bash

# Template file for 'borgmatic'
pkgname=borgmatic
version=1.7.5
revision=1
build_style=python3-module
# test_borgmatic.py runs not yet installed self,
# tests from test_execute.py sporadically fail in CI
make_check_args="--deselect=tests/integration/commands/test_borgmatic.py
--deselect=tests/integration/test_execute.py::test_log_outputs_returns_output_without_logging_for_output_log_level_none
--deselect=tests/integration/test_execute.py::test_log_outputs_logs_each_line_separately"
hostmakedepends="python3-setuptools"
depends="borg python3-setuptools python3-ruamel.yaml python3-jsonschema
python3-colorama python3-requests"
checkdepends="${depends} python3-pytest-cov python3-flexmock"
short_desc="Wrapper script for the Borg backup software"
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
license="GPL-3.0-or-later"
homepage="https://torsion.org/borgmatic/"
changelog="https://projects.torsion.org/borgmatic-collective/borgmatic/raw/branch/master/NEWS"
distfiles="${PYPI_SITE}/b/borgmatic/borgmatic-${version}.tar.gz"
checksum=914c547028d3d6d94001e256082b8a4d8eb38db0c2d9948483b3b9712fce4b77
post_install() {
# remove tests directory polluting site-packages
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/tests
}