1 |
commit: 59633a79984c9e8053bd38d3fd2ebf892d01b153 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 2 07:51:14 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 2 09:48:53 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59633a79 |
7 |
|
8 |
dev-python/pytz: Bump to 2020.4 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pytz/Manifest | 1 + |
13 |
dev-python/pytz/pytz-2020.4.ebuild | 34 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 35 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pytz/Manifest b/dev-python/pytz/Manifest |
17 |
index 851e4f60300..3ae9c815710 100644 |
18 |
--- a/dev-python/pytz/Manifest |
19 |
+++ b/dev-python/pytz/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pytz-2020.1.tar.gz 311771 BLAKE2B 2d7dd9987fd912dd2a62b5c4ab1667a13f3704ff407796c00fd76b6f3ac4dfcffba9f58740f9456ddfade6c2ef6deacc754f57f5e434b97da36b36fca3024d0f SHA512 4f652ab400bac0bd83ed305be7540094e674029a0cbde7da280adfd911b8c0a44023799b7c61971a5a61a1d6e3992c5b621e5e95bbfe962f310d5f26d4fda3ce |
22 |
+DIST pytz-2020.4.tar.gz 310941 BLAKE2B 8abe524ccb7ed676c64dbc129ade5d6562980ea28f8939a3a7a406acf16a8a936e79ff630bf37884610e8936dfe96311ecb752f3b79519a126e1f1ac48883842 SHA512 dcbe763bc6e48c52df855fe03a8109dc0656a0e851324c0468f4307e8aff60e577fe0c9f0b062319e90d2f639b96e98edf8346064705e244143386c863a0aa7c |
23 |
|
24 |
diff --git a/dev-python/pytz/pytz-2020.4.ebuild b/dev-python/pytz/pytz-2020.4.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..7580d791ce8 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pytz/pytz-2020.4.ebuild |
29 |
@@ -0,0 +1,34 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 ) |
36 |
+PYTHON_REQ_USE="threads(+)" |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="World timezone definitions for Python" |
41 |
+HOMEPAGE="https://pythonhosted.org/pytz/ https://pypi.org/project/pytz/" |
42 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" |
47 |
+IUSE="" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ || ( >=sys-libs/timezone-data-2017a sys-libs/glibc[vanilla] )" |
51 |
+DEPEND="${RDEPEND} |
52 |
+ app-arch/unzip" |
53 |
+ |
54 |
+PATCHES=( |
55 |
+ # Use timezone-data zoneinfo. |
56 |
+ "${FILESDIR}"/2018.4-zoneinfo.patch |
57 |
+ # ...and do not install a copy of it. |
58 |
+ "${FILESDIR}"/${PN}-2018.4-zoneinfo-noinstall.patch |
59 |
+) |
60 |
+ |
61 |
+python_test() { |
62 |
+ "${EPYTHON}" pytz/tests/test_tzinfo.py -v || die "Tests fail with ${EPYTHON}" |
63 |
+} |