1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_7 )
7 PYTHON_REQ_USE="sqlite"
11 DESCRIPTION="Synchronize calendars and contacts"
12 HOMEPAGE="https://github.com/pimutils/vdirsyncer"
13 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
16 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
19 RESTRICT="!test? ( test )"
21 RDEPEND=">=dev-python/click-5.0[${PYTHON_USEDEP}]
22 >=dev-python/click-log-0.3.0[${PYTHON_USEDEP}]
23 <dev-python/click-log-0.4.0[${PYTHON_USEDEP}]
24 >=dev-python/click-threading-0.2[${PYTHON_USEDEP}]
25 >=dev-python/requests-2.4.1[${PYTHON_USEDEP}]
26 !=dev-python/requests-2.9.0[${PYTHON_USEDEP}]
27 >=dev-python/requests-toolbelt-0.4.0[${PYTHON_USEDEP}]
28 >=dev-python/atomicwrites-0.1.7[${PYTHON_USEDEP}]"
30 dev-python/setuptools[${PYTHON_USEDEP}]
31 dev-python/setuptools_scm[${PYTHON_USEDEP}]
33 >=dev-python/hypothesis-3.1[${PYTHON_USEDEP}]
34 dev-python/pytest[${PYTHON_USEDEP}]
35 dev-python/pytest-localserver[${PYTHON_USEDEP}]
36 dev-python/pytest-subtesthack[${PYTHON_USEDEP}]
39 DOCS=( AUTHORS.rst CHANGELOG.rst CONTRIBUTING.rst README.rst config.example )
42 # skip tests needing servers running
43 local -x DAV_SERVER=skip
44 local -x REMOTESTORAGE_SERVER=skip
45 # pytest dies hard if the envvars do not have any value...
47 local -x DETERMINISTIC_TESTS=false
48 py.test -v || die "Tests fail with ${EPYTHON}"