1 # Copyright 2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7,8} )
12 S="${WORKDIR}/${MY_P}"
14 DESCRIPTION="Python library to simplify working with jsonlines and ndjson data"
15 HOMEPAGE="https://github.com/pganssle/zoneinfo"
16 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
23 dev-python/backports[${PYTHON_USEDEP}]
27 sys-libs/timezone-data
28 dev-python/backports[${PYTHON_USEDEP}]
29 $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_6)
32 distutils_enable_tests pytest
33 distutils_enable_sphinx doc
36 distutils-r1_python_install
38 rm "${D}/$(python_get_sitedir)"/backports/__init__.py* || die
39 rm -rf "${D}/$(python_get_sitedir)"/backports/__pycache__ || die