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/jinja2-time/
Date: Thu, 19 May 2022 07:52:29
Message-Id: 1652946741.7d482de803c6d783638ec31d13d89ab87e796f9c.mgorny@gentoo
1 commit: 7d482de803c6d783638ec31d13d89ab87e796f9c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 19 07:50:53 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu May 19 07:52:21 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d482de8
7
8 dev-python/jinja2-time: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/jinja2-time/jinja2-time-0.2.0-r1.ebuild | 36 ++++++++++++++++++++++
13 1 file changed, 36 insertions(+)
14
15 diff --git a/dev-python/jinja2-time/jinja2-time-0.2.0-r1.ebuild b/dev-python/jinja2-time/jinja2-time-0.2.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..2f0b11265e66
18 --- /dev/null
19 +++ b/dev-python/jinja2-time/jinja2-time-0.2.0-r1.ebuild
20 @@ -0,0 +1,36 @@
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..11} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Jinja2 Extension for Dates and Times"
32 +HOMEPAGE="
33 + https://github.com/hackebrot/jinja2-time/
34 + https://pypi.org/project/jinja2-time/
35 +"
36 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
37 +
38 +LICENSE="MIT"
39 +SLOT="0"
40 +KEYWORDS="~amd64 ~ppc64 ~x86"
41 +
42 +RDEPEND="
43 + dev-python/arrow[${PYTHON_USEDEP}]
44 + dev-python/jinja[${PYTHON_USEDEP}]
45 +"
46 +BDEPEND="
47 + test? (
48 + dev-python/freezegun[${PYTHON_USEDEP}]
49 + )
50 +"
51 +
52 +PATCHES=(
53 + "${FILESDIR}"/${P}-arrow-compat.patch
54 +)
55 +
56 +distutils_enable_tests pytest