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/isoduration/
Date: Wed, 11 May 2022 14:33:05
Message-Id: 1652279510.daf8e4d1d589a23f61e597854a60e1c2a8866eb5.mgorny@gentoo
1 commit: daf8e4d1d589a23f61e597854a60e1c2a8866eb5
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 11 14:08:15 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 11 14:31:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=daf8e4d1
7
8 dev-python/isoduration: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../isoduration/isoduration-20.11.0-r1.ebuild | 39 ++++++++++++++++++++++
13 1 file changed, 39 insertions(+)
14
15 diff --git a/dev-python/isoduration/isoduration-20.11.0-r1.ebuild b/dev-python/isoduration/isoduration-20.11.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..723167de104a
18 --- /dev/null
19 +++ b/dev-python/isoduration/isoduration-20.11.0-r1.ebuild
20 @@ -0,0 +1,39 @@
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 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Operations with ISO 8601 durations"
32 +HOMEPAGE="
33 + https://pypi.org/project/isoduration/
34 + https://github.com/bolsote/isoduration/
35 +"
36 +SRC_URI="
37 + https://github.com/bolsote/isoduration/archive/${PV}.tar.gz
38 + -> ${P}.gh.tar.gz
39 +"
40 +
41 +LICENSE="ISC"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
44 +
45 +RDEPEND="
46 + >=dev-python/arrow-0.15.0[${PYTHON_USEDEP}]
47 +"
48 +BDEPEND="
49 + test? (
50 + dev-python/hypothesis[${PYTHON_USEDEP}]
51 + dev-python/isodate[${PYTHON_USEDEP}]
52 + )
53 +"
54 +
55 +distutils_enable_tests pytest
56 +
57 +EPYTEST_IGNORE=(
58 + tests/test_benchmark.py
59 +)