blob: d2edbcafdd59a0611b6d7011259815f2701d36b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=borgmatic
pkgver=1.7.5
pkgrel=0
pkgdesc="Simple, configuration-driven backup software for servers and workstations"
url="https://torsion.org/borgmatic/"
# armhf: limited by borgbackup
# s390x: tests fail
arch="noarch !armhf !s390x"
license="GPL-3.0-or-later"
depends="
borgbackup
python3
py3-setuptools
py3-jsonschema
py3-requests
py3-ruamel.yaml
py3-colorama
"
checkdepends="
py3-pytest
py3-pytest-cov
py3-flexmock
"
source="$pkgname-$pkgver.tar.gz::https://projects.torsion.org/borgmatic-collective/borgmatic/archive/$pkgver.tar.gz
python3.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 --skip-build --root="$pkgdir"
}
sha512sums="
8ff7d09d04df560b8f4a9a50fe59e0412f3402c5dbc7b4a068f44b68432e398a9b54b7a7c05fad999d1012caa07d313e97a2345b91c82b00ca9064217212ff2c borgmatic-1.7.5.tar.gz
c4561ec75f486f75121f18039e42b166ed7eac4f3a6a2e821410ec0b8f0d1a48f1e5155393d8b735b6554efcf9cfc8ff163bc64b262b0239f86a03ec59ab6652 python3.patch
"
|