void-packages/srcpkgs/borgmatic/template

27 lines
1.2 KiB
Bash

# Template file for 'borgmatic'
pkgname=borgmatic
version=1.7.4
revision=2
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=b1b1e46252e12f42c17a0984c40ace10fc22d52806f0d687f2d0a1a99869a007
post_install() {
# remove tests directory polluting site-packages
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/tests
}