blob: 1771e80b7027df4681f47e4742cca69dd47fa769 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Maintainer: eolianoe <eolianoe At GoogleMAIL DoT com>
# Co-Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
_pkgname=vdirsyncer
pkgname=${_pkgname}-git
pkgver=0.19.1.dev3+g2c44f7d
pkgrel=2
pkgdesc="Synchronize CalDAV and CardDAV."
arch=('any')
url="https://vdirsyncer.readthedocs.org/"
license=("BSD")
depends=(
"python-click<9.0"
"python-click-log<0.5.0"
"python-requests-toolbelt"
"python-atomicwrites"
"python-aiohttp<4.0.0"
"python-aiostream<0.5.0"
)
makedepends=(
"git"
"python-setuptools-scm"
"python-sphinx"
"python-sphinx_rtd_theme"
python-wheel
python-build
python-installer
)
checkdepends=(
"python-hypothesis<7.0.0"
"python-pytest-httpserver"
"python-trustme"
"python-pytest-asyncio"
"python-aioresponses"
"python-pytest-cov"
)
optdepends=(
"python-aiohttp-oauthlib: Google support"
)
source=("git+https://github.com/pimutils/${_pkgname}.git")
sha256sums=('SKIP')
conflicts=("vdirsyncer")
provides=("vdirsyncer=${pkgver}")
pkgver() {
cd "$srcdir/$_pkgname"
python -m setuptools_scm 2> /dev/null
}
build() {
cd "${srcdir}/${_pkgname}"
python -m build --wheel --skip-dependency-check --no-isolation
export PYTHONPATH="build:${PYTHONPATH}"
sphinx-build -b man docs/ build/
}
check(){
cd "${srcdir}/${_pkgname}"
export DETERMINISTIC_TESTS=true
python -m pytest --tb=short -c /dev/null
}
package() {
cd "${srcdir}/${_pkgname}"
python -m installer --destdir="$pkgdir" dist/*.whl
# systemd
install -vDm 644 "contrib/${_pkgname}."{service,timer} -t "${pkgdir}/usr/lib/systemd/user/"
# man page
install -vDm 644 "build/${_pkgname}.1" -t "${pkgdir}/usr/share/man/man1"
# docs
install -vDm 644 {AUTHORS,CHANGELOG,README}.rst -t "${pkgdir}/usr/share/doc/${_pkgname}"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
}
|