Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tzlocal/
Date: Tue, 18 Jan 2022 22:44:48
Message-Id: 1642545873.c0fc645d937fbc7ec24136b615d15ced12136568.mgorny@gentoo
1 commit: c0fc645d937fbc7ec24136b615d15ced12136568
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 18 22:38:42 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 18 22:44:33 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c0fc645d
7
8 dev-python/tzlocal: Switch to PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/tzlocal/tzlocal-4.1-r1.ebuild | 28 ++++++++++++++++++++++++++++
13 1 file changed, 28 insertions(+)
14
15 diff --git a/dev-python/tzlocal/tzlocal-4.1-r1.ebuild b/dev-python/tzlocal/tzlocal-4.1-r1.ebuild
16 new file mode 100644
17 index 000000000000..1803be729272
18 --- /dev/null
19 +++ b/dev-python/tzlocal/tzlocal-4.1-r1.ebuild
20 @@ -0,0 +1,28 @@
21 +# Copyright 1999-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 +DESCRIPTION="tzinfo object for the local timezone"
31 +HOMEPAGE="https://github.com/regebro/tzlocal"
32 +SRC_URI="https://github.com/regebro/tzlocal/archive/${PV}.tar.gz -> ${P}.gh.tar.gz"
33 +
34 +LICENSE="MIT"
35 +SLOT="0"
36 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
37 +
38 +RDEPEND="
39 + dev-python/pytz_deprecation_shim[${PYTHON_USEDEP}]
40 + $(python_gen_cond_dep '
41 + dev-python/backports-zoneinfo[${PYTHON_USEDEP}]
42 + ' python3_8 pypy3)"
43 +BDEPEND="
44 + test? (
45 + dev-python/pytest-mock[${PYTHON_USEDEP}]
46 + )"
47 +
48 +distutils_enable_tests pytest