]> git.bzium.org/ - embe/overlay.git/blob - dev-python/backports-zoneinfo/backports-zoneinfo-0.2.1.ebuild
www-apps/bzium-lister: add description and home page
[embe/overlay.git] / dev-python / backports-zoneinfo / backports-zoneinfo-0.2.1.ebuild
1 # Copyright 2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
3
4 EAPI=7
5
6 PYTHON_COMPAT=( python3_{6,7,8} )
7 inherit distutils-r1
8
9 MY_PN="${PN/-/.}"
10 MY_P="${MY_PN}-${PV}"
11
12 S="${WORKDIR}/${MY_P}"
13
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"
17
18 LICENSE="Apache-2.0"
19 SLOT="0"
20 KEYWORDS="~amd64"
21
22 DEPEND="
23         dev-python/backports[${PYTHON_USEDEP}]
24 "
25
26 RDEPEND="
27         sys-libs/timezone-data
28         dev-python/backports[${PYTHON_USEDEP}]
29         $(python_gen_cond_dep 'dev-python/importlib_resources[${PYTHON_USEDEP}]' python3_6)
30 "
31
32 distutils_enable_tests pytest
33 distutils_enable_sphinx doc
34
35 python_install() {
36         distutils-r1_python_install
37
38         rm "${D}/$(python_get_sitedir)"/backports/__init__.py* || die
39         rm -rf "${D}/$(python_get_sitedir)"/backports/__pycache__ || die
40 }