summaryrefslogtreecommitdiff
path: root/dev-python/pytz
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-12 12:31:24 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-12 12:31:24 +0100
commit3ea54510168a7ed4271b85f7292beca67346bfe9 (patch)
tree560f44ef2b85e5594b847ab20454e58b35ecd7e2 /dev-python/pytz
parent65a36438d5b824f80023c282dadc3fcd5736b526 (diff)
gentoo auto-resync : 12:09:2024 - 12:31:23
Diffstat (limited to 'dev-python/pytz')
-rw-r--r--dev-python/pytz/Manifest2
-rw-r--r--dev-python/pytz/pytz-2024.2.ebuild51
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/pytz/Manifest b/dev-python/pytz/Manifest
index 4c3c21d52db9..eb41fc34b94c 100644
--- a/dev-python/pytz/Manifest
+++ b/dev-python/pytz/Manifest
@@ -1,4 +1,6 @@
AUX pytz-2023.2-system-tzinfo.patch 1787 BLAKE2B 52026a74040573aa97a86ee6e8c5afb56114297182116a375b9b9fc5e8840edba4e4e5eeeadf386a9f9d84302d71ec4ab55098b4b9d3d67db73043d7c0a52f79 SHA512 23fce20b8d91bdd1436efb611c5593340984ad27ed5a5fbcebb7472b189e7e66a391c6e6925f3f4a33cae49f527453fdc1075c162ef6976614d1b398d5abe625
DIST pytz-2024.1.tar.gz 316214 BLAKE2B 1047e11c41d3abeb10cdf55021c8702fbbb0c0dbcafc63c8c044ecf73dda2ac9344fc66e0a239302a0fd12856bbb3a7d49745eae671fac35db9c83fa502e7cf8 SHA512 cc1e4c9b34c62791cea277a0ce188d975e62135cb15bccfb49dc1a9366c7697ead9c67956846699f18b90db4c66e6c5fe1a91a524d01ae821c0eaa613550ea74
+DIST pytz-2024.2.tar.gz 319692 BLAKE2B 631e87978eddee62c7189515b019038b44d8600e3aad51afcb7c6ffb70d6cdf44942fb8c2ff63bf179be0d42e1337cd1b723c809c5711d86f7e370404e3f8a86 SHA512 140a34f51044188420ac3bfbaa5ece91ea0fe4faf7a247c01312265b63b4aa8d2b389219234e173eca0343d0463aef9d6472ee803915ead989594896567c593e
EBUILD pytz-2024.1.ebuild 1187 BLAKE2B 2650f4d52c78a33c6c9d26364d10f122b4733fd3d68adf3213c11290877d740bdb421a19ea9be9d971ecddbd70eacfc45748fd586a05fa8242c8513d19cc13f2 SHA512 114aa856f938324b606574df502fddd203b96a97b5a8057134beebcaeb0d9ec92c244a07d075dfd8f9af493831b87d027dfec2e4839f56a3eb218f8f2ebf22d8
+EBUILD pytz-2024.2.ebuild 1195 BLAKE2B 5e9a8257fcc4bef8a214523630235e93b8185ae6689fef8434a3fa3c938546698c5b69d9c78cd0b52735686bd559f1efe0747b2ca3e39398862b890b283584b0 SHA512 b0017f7e1379b7c43c5df14437df425a7beec732517be82ab9b74da2c5d06b59b7b804048ed566ffccf0929442f48da8352a78f9223c2b8fabfd7daec7e25585
MISC metadata.xml 820 BLAKE2B 224acaf3f2b85e717829a59108a4053e9a60bc710c330b12dc3f181685d5c8ab1b090105796f092004b1a70781882438b0c0a27bc96ef0116b33fe7051cc6ad5 SHA512 c9a677d89a9f831f3a9833b02e6cec36adbb27688e117b66caad32d3be10fca19787dd85eb14e21eb95d6ed8ba6ff02122ad9f54aa175252834dc4c219b7c219
diff --git a/dev-python/pytz/pytz-2024.2.ebuild b/dev-python/pytz/pytz-2024.2.ebuild
new file mode 100644
index 000000000000..07ae54157e80
--- /dev/null
+++ b/dev-python/pytz/pytz-2024.2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2024 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 ~ia64 ~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}"
+}