diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-01-31 05:51:26 +0100 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-01-31 05:51:26 +0100 |
| commit | 7deb719d316fcdc7b519bfcaee666306131eada5 (patch) | |
| tree | 47410732187a88f2c585fae3a4b8c6c8a232d912 /dev-python | |
| parent | 9bae9232b4f1695ef687506d4b08298e6b7355d4 (diff) | |
| download | gentoo-7deb719d316fcdc7b519bfcaee666306131eada5.tar.gz gentoo-7deb719d316fcdc7b519bfcaee666306131eada5.tar.bz2 gentoo-7deb719d316fcdc7b519bfcaee666306131eada5.zip | |
dev-python/pytz: Bump to 2025.1
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/pytz/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pytz/pytz-2025.1.ebuild | 51 |
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-python/pytz/Manifest b/dev-python/pytz/Manifest index 139a59dc2e74..1b6855008b01 100644 --- a/dev-python/pytz/Manifest +++ b/dev-python/pytz/Manifest @@ -1 +1,2 @@ DIST pytz-2024.2.tar.gz 319692 BLAKE2B 631e87978eddee62c7189515b019038b44d8600e3aad51afcb7c6ffb70d6cdf44942fb8c2ff63bf179be0d42e1337cd1b723c809c5711d86f7e370404e3f8a86 SHA512 140a34f51044188420ac3bfbaa5ece91ea0fe4faf7a247c01312265b63b4aa8d2b389219234e173eca0343d0463aef9d6472ee803915ead989594896567c593e +DIST pytz-2025.1.tar.gz 319617 BLAKE2B 8d7d4c2f00a1cd124b8926984259d788438fa8387b16166d6f8ce0867516057859750baa3716d6ee2979f189cb7b1c76b227d93d9c32f062a2b8c71625e10cdd SHA512 d571c70c83c5ccc6db661e2f97e990a6490b07b7597ce5813e3a3a1e2e49cd83301f8f59205b9557f3f34e7bdc9435961cf55e630c4452d6e251e3f6db263659 diff --git a/dev-python/pytz/pytz-2025.1.ebuild b/dev-python/pytz/pytz-2025.1.ebuild new file mode 100644 index 000000000000..512e470fd13e --- /dev/null +++ b/dev-python/pytz/pytz-2025.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..13} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="World timezone definitions for Python" +HOMEPAGE=" + https://pythonhosted.org/pytz/ + https://github.com/stub42/pytz/ + https://pypi.org/project/pytz/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + || ( + >=sys-libs/timezone-data-2023b + sys-libs/glibc[vanilla] + ) +" +BDEPEND=" + test? ( + ${RDEPEND} + ) +" + +src_prepare() { + distutils-r1_src_prepare + + # unbundle timezone-data + rm -r pytz/zoneinfo || die + # remove hardcoded list of all timezones but leave subjective set + # of "common timezones" + sed -i -e '/^_all_timezones_unchecked/,/^all_timezones_set/d' pytz/__init__.py || die + eapply "${FILESDIR}"/pytz-2023.2-system-tzinfo.patch +} + +python_test() { + "${EPYTHON}" pytz/tests/test_tzinfo.py -v || + die "Tests fail with ${EPYTHON}" +} |
