2
0
mirror of https://github.com/gentoo-mirror/gentoo.git synced 2026-01-19 00:09:37 +03:00
Files
gentoo/dev-python/pytz/pytz-2022.7.1.ebuild
Michał Górny 9573c8decc dev-python/pytz: Use pypi.eclass
Signed-off-by: Michał Górny <mgorny@gentoo.org>
2023-03-16 05:04:16 +01:00

35 lines
779 B
Bash

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..11} pypy3 )
PYTHON_REQ_USE="threads(+)"
inherit distutils-r1 pypi
DESCRIPTION="World timezone definitions for Python"
HOMEPAGE="
https://pythonhosted.org/pytz/
https://launchpad.net/pytz/
https://pypi.org/project/pytz/
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
DEPEND="
|| (
>=sys-libs/timezone-data-2017a
sys-libs/glibc[vanilla]
)
"
RDEPEND="${DEPEND}"
python_test() {
"${EPYTHON}" pytz/tests/test_tzinfo.py -v ||
die "Tests fail with ${EPYTHON}"
}