aboutsummaryrefslogtreecommitdiffstats
path: root/testing/vdirsyncer/APKBUILD
blob: 5034905d0ac3df4469493f685fe15210af9c8efc (plain) (blame)
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
48
# Contributor: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=vdirsyncer
_pyname=$pkgname
pkgver=0.18.0
pkgrel=0
pkgdesc="CLI Synchronization for CalDAV and CardDAV"
url="http://vdirsyncer.pimutils.org"
arch="noarch"
license="BSD-3-Clause"
depends="
	python3
	py3-atomicwrites
	py3-click
	py3-click-log
	py3-click-threading
	py3-requests
	py3-requests-toolbelt
	"
makedepends="py3-setuptools py3-setuptools_scm py3-sphinx"
checkdepends="
	py3-pytest
	py3-pytest-cov
	py3-hypothesis
	py3-pytest-localserver
	py3-subtesthack
	py3-werkzeug
	"
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"

build() {
	python3 setup.py build
	PYTHONPATH="build:$PYTHONPATH" sphinx-build -b man docs/ build/
}

check() {
	make DETERMINISTIC_TESTS=true PYTEST_ADDOPTS="" test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
	install -Dm644 build/$pkgname.1 "$pkgdir"/usr/share/man/man1/$pkgname.1
}

sha512sums="
7fb3d0f7d982d8390d278de1a620231e6ead1ec64057c5dbac98dcff491fa3e6b9ed8ba953995458e393aab73b0b9ab8ba14010e06f90a04d8ee2c28c7c7fbfd  vdirsyncer-0.18.0.tar.gz
"