1 |
commit: 94d899a43b97a350f86ebb7b4174f2b103dceb7a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jan 18 22:38:11 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 18 22:44:32 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94d899a4 |
7 |
|
8 |
dev-python/pytz_deprecation_shim: Switch to PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../pytz_deprecation_shim-0.1.0_p0-r2.ebuild | 43 ++++++++++++++++++++++ |
13 |
1 file changed, 43 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/pytz_deprecation_shim/pytz_deprecation_shim-0.1.0_p0-r2.ebuild b/dev-python/pytz_deprecation_shim/pytz_deprecation_shim-0.1.0_p0-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..baf8e4432d10 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/pytz_deprecation_shim/pytz_deprecation_shim-0.1.0_p0-r2.ebuild |
20 |
@@ -0,0 +1,43 @@ |
21 |
+# Copyright 2021-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
28 |
+inherit distutils-r1 |
29 |
+ |
30 |
+MY_P=${P/_p/.post} |
31 |
+ |
32 |
+DESCRIPTION="Shims to make deprecation of pytz easier" |
33 |
+HOMEPAGE="https://pypi.org/project/pytz-deprecation-shim/ https://github.com/pganssle/pytz-deprecation-shim" |
34 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
35 |
+S="${WORKDIR}/${MY_P}" |
36 |
+ |
37 |
+LICENSE="Apache-2.0" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ $(python_gen_cond_dep ' |
43 |
+ dev-python/backports-zoneinfo[${PYTHON_USEDEP}] |
44 |
+ ' python3_8 pypy3) |
45 |
+ sys-libs/timezone-data |
46 |
+" |
47 |
+BDEPEND=" |
48 |
+ test? ( |
49 |
+ dev-python/hypothesis[${PYTHON_USEDEP}] |
50 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
51 |
+ dev-python/toml[${PYTHON_USEDEP}] |
52 |
+ ) |
53 |
+" |
54 |
+ |
55 |
+distutils_enable_tests pytest |
56 |
+distutils_enable_sphinx docs \ |
57 |
+ dev-python/sphinx_rtd_theme |
58 |
+ |
59 |
+src_prepare() { |
60 |
+ # apparently used only as a fallback |
61 |
+ sed -i -e '/tzdata/d' setup.cfg || die |
62 |
+ distutils-r1_src_prepare |
63 |
+} |