aboutsummaryrefslogblamecommitdiffstats
path: root/testing/borgmatic/APKBUILD
blob: 43aa0e9a445e327275f4c2787f1f35df08aa7fd1 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                     
             
        

                                                                                   
                                                                 
                          













                       



                                                                                                     














                                                                             


                                                                                                                                                                     
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=borgmatic
pkgver=1.5.12
pkgrel=0
pkgdesc="Simple, configuration-driven backup software for servers and workstations"
url="https://torsion.org/borgmatic/"
arch="noarch !s390x !mips !mips64 !armhf" # limited by borgbackup
license="GPL-3.0-or-later"
depends="
	borgbackup
	python3
	py3-setuptools
	py3-pykwalify
	py3-requests
	py3-ruamel.yaml
	py3-colorama
	"
checkdepends="
	py3-pytest
	py3-pytest-cov
	py3-flexmock
	"
source="$pkgname-$pkgver.tar.gz::https://projects.torsion.org/witten/borgmatic/archive/$pkgver.tar.gz
	pytest6.patch
	test-execute-fix.patch
	"
builddir="$srcdir/borgmatic"

build() {
	python3 setup.py build
}

check() {
	# omit a simple test that requires borgmatic to be available in $PATH
	pytest -k "not test_borgmatic_version_matches_news_version"
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}

sha512sums="93d5c5ba0e93a00533e9b174153dc447bbeba474512f8d2a28ee3ad0cebee76f71371aa45257d72d9b2116ff0f07b77972bd7261221c852f140e2cddcd20c878  borgmatic-1.5.12.tar.gz
cbde96060709a1f8eee1f57228d84237bb0169cbc1b3e57a79dd67d072ff4bed44e3ee01accb9aee954503469d9b81b49d63ed6dd00d1e75a90b398a3aa7a47c  pytest6.patch
44d36d3c2da032de1e5f82edde56086d7930dec62df8c160619b5c1252fd16c88906625c98218b5b010fa4e3ef3fa0e86afbbd713230cc68aa97531c5d74c4c2  test-execute-fix.patch"