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/ipaddr/
Date: Sat, 29 Jan 2022 15:02:19
Message-Id: 1643468217.35166b74bbb86f4234ca9caeee0c545461d9870b.mgorny@gentoo
1 commit: 35166b74bbb86f4234ca9caeee0c545461d9870b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 29 14:56:26 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 29 14:56:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35166b74
7
8 dev-python/ipaddr: Switch to PEP 517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/ipaddr/ipaddr-2.2.0-r2.ebuild | 25 +++++++++++++++++++++++++
13 1 file changed, 25 insertions(+)
14
15 diff --git a/dev-python/ipaddr/ipaddr-2.2.0-r2.ebuild b/dev-python/ipaddr/ipaddr-2.2.0-r2.ebuild
16 new file mode 100644
17 index 000000000000..cf3c4704e910
18 --- /dev/null
19 +++ b/dev-python/ipaddr/ipaddr-2.2.0-r2.ebuild
20 @@ -0,0 +1,25 @@
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} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="Python IP address manipulation library"
32 +HOMEPAGE="https://github.com/google/ipaddr-py https://pypi.org/project/ipaddr/"
33 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
34 +
35 +LICENSE="Apache-2.0"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
38 +
39 +src_configure() {
40 + 2to3 -n -w --no-diffs *.py || die
41 +}
42 +
43 +python_test() {
44 + "${EPYTHON}" ipaddr_test.py || die "Tests fail with ${EPYTHON}"
45 +}